[Vtigercrm-developers] Relate to Account module on import

Alan Lord alanslists at gmail.com
Fri Sep 13 10:03:40 UTC 2013


On 13/09/13 09:40, Joe Bordes wrote:
>
> I am not quite sure but I think the new import module in 5.4.0 just uses
> the field defined in vtiger_entityname table. You can try changing it
> there.
>
> Let us know how it goes.

I was rapidly glazing over looking at the way "reference" fields are 
handled in modules/import/controllers/Import_Data_Controller.php... But 
eventually after following a few miles of spaghetti code it looks like 
you are right.

I changed the fieldname column for Accounts in vtiger_entityname from 
accountname to account_no then I imported a couple of Contacts as a test 
with the relationship column written as "Accounts::::ACC1" and it worked.

A quick flick around some more screens and nothing else seems to have 
broken so far either.

Cheers

Al

PS - Looking forward to finally meeting you next week!








More information about the vtigercrm-developers mailing list