Hi,
Sugar CE 5.2
I added a custom module mrm_period, then added a one-to-many lrelationship from accounts to mrm_period in studio.
Everything works OK in the application however when I looked at the underlying llinking tables to do activity reporting I found differences in the way that links between standard modules accounts->contacts and custom modules accounts->mrm_period both of which are one-to-many links..
Created account A linked to mrm_period P
This generated the link in accounts_mrm_period_c
uuid1 - modified 08:00 - deleted=0 - ida=A, idn=P
everything as expected
I then edited P and changed a telephone number
accounts_mrm_period_c then contained
uuid2 - modified 08:10 - deleted=0 - ida=A, idb=P
uuid1 - modified 08:10 - deleted=1 - ida=A, idb=P
A further change to the telephone number produced
uuid3 - modified 08:20 - deleted=0, ida=A, idb=P
uuid2 - modified 08:20 - deleted=1, ida=A, idb=P
uuid1 - modified 08:20 - deleted=1, ida=A, idb=P
So everytime I edit any field in mrm_period all the links are being logically deleted and a new link created. Obviously this has performance issues.
I tried the same test on accounts->contacts and the behaviour was as expected - the link is set up once and not affected by an edit of a non-linked field.
Is this a problem with the way that studio has set up the custom one-to-many join, or the edit screen for the custom module?
Is anyone else having the same problem?
Thanks


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks