[Vtigercrm-developers] Multiple uitype 10 in custom module

Adam Heinz amh at metricwise.net
Sun Feb 3 18:42:30 PST 2013


Search the mailing list archives on gmane or whatever. I'm positive this has come up before.

Adam

On Feb 3, 2013, at 9:31 PM, Richard Hills <richard at tw.co.nz> wrote:

> Hi Guys,
> 
> When I try to create a module with 2x uitype 10 I get the following 
> error (on the second occurance of the field type):
> 
>> Setting RelatedToCustomModule relation with TWTCustomModule ... 
>> DONE<BR><pre>array (
>>  0 =>
>>  array (
>>    'file' => '/html/include/database/PearDatabase.php',
>>    'line' => 474,
>>    'function' => 'checkError',
>>  ),
>>  1 =>
>>  array (
>>    'file' => '/html/vtlib/Vtiger/ModuleBasic.php',
>>    'line' => 299,
>>    'function' => 'pquery',
>>  ),
>>  2 =>
>>  array (
>>    'file' => '/html/customRoleModule.php',
>>    'line' => 70,
>>    'function' => 'setEntityIdentifier',
>>  ),
>> )</pre> Query Failed:INSERT INTO vtiger_entityname(tabid, modulename, 
>> tablename, fieldname, entityidfield, entityidcolumn) 
>> VALUES(?,?,?,?,?,?)::ADODB error  Query Failed:INSERT INTO 
>> vtiger_entityname(tabid, modulename, tablename, fieldname, 
>> entityidfield, entityidcolumn) VALUES(?,?,?,?,?,?)::->Duplicate entry 
>> '53' for key 'PRIMARY
> 
> I assume this is a bug, however if anyone can suggest a workaround, or 
> simply disprove that this has something to do with the double up of 
> uitype 10 that would be much appreciated.
> 
> Thank you
> 
> -- 
> Richard Hills
> TechnologyWise Ltd, Tauranga, NZ
> richard at tw.co.nz
> www.technologywise.co.nz
> ph: +64 (0)7 571 1060
> fax: +64 (0)7 571 1061
> 
> _______________________________________________
> http://www.vtiger.com/



More information about the vtigercrm-developers mailing list