[Vtigercrm-developers] Question about Save New Entity Module - 5.4.0
possebon
possebon at gmail.com
Wed Jul 11 18:04:10 PDT 2012
Hi all,
I'm having an issue for every New Entity Module that I create.
I create all my new entities modules using as base the Payslip sample
(including the ModuleDir/5.4.0)
When I try to save a record for the new entity, I'm getting this error
message:
Sorry! Attempt to access restricted file.
I enabled the database debug (include/database/PearDatabase.php) and I can
see this error message:
1048: Column 'smownerid' cannot be null
ADOConnection._Execute(insert into vtiger_crmentity
(crmid,smcreatorid,smownerid,setype,description,modifiedby,createdtime,modifiedtime)
values(8,'1',N...) % line 842, file: adodb.inc.php
<file://var/www/clients/client14/web16/web/crmdev/adodb/adodb.inc.php>
ADOConnection.Execute(insert into vtiger_crmentity
(crmid,smcreatorid,smownerid,setype,description,modifiedby,createdtime,modifiedtime)
values(?,?,?,?..., Array[8]) % line 468, file: PearDatabase.php
<file://var/www/clients/client14/web16/web/crmdev/include/database/PearDatabase.php>
PearDatabase.pquery(insert into vtiger_crmentity
(crmid,smcreatorid,smownerid,setype,description,modifiedby,createdtime,modifiedtime)
values(?,?,?,?..., Array[8]) % line 348, file: CRMEntity.php
<file://var/www/clients/client14/web16/web/crmdev/data/CRMEntity.php>
CRMEntity.insertIntoCrmEntity(PoliticalParty, ) % line 84,
file: CRMEntity.php
<file://var/www/clients/client14/web16/web/crmdev/data/CRMEntity.php>
CRMEntity.saveentity(PoliticalParty, ) % line 801, file:
CRMEntity.php <file://var/www/clients/client14/web16/web/crmdev/data/CRMEntity.php>
My question is, is it obligatory have a smownerid field on all entities
module? Should I create one?
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120711/2258890e/attachment.html
More information about the vtigercrm-developers
mailing list