Hi there,
The problem on production verison comes from nowhere.
I have unexpected problem with “auto-deleting” relations status between fields in Contacts and Custom modules.
!!! The term “relations” just means value 1 for the “deleted” field in the middle table for Contacts and Custom module.
I have the Custom module with relation One-to-One to Contact.
The relationship creaded with Studio.
One-to-One because one Custom module record should be associated witn only one record in Contacts.
The problem is deleting relations status in the middle table for all other records. It means the Deleted field changed unexpectedly from “0” to “1”.
Exlpanation step by step:
- User create new or edit any custom module present record
- Select the contact A from Contacts.
- Chossen contact A will disappear from in custom module list view for all records related to A except last edited
- In the DB in the middle table for Contacts and Custom module the field Deleted updated to “1” for all records with Custom module record ID and ID for the contact record A
- Only last edited record in Custom module has the contact A.
Simply say after changing contact in custom module all other records (for custom module) with the same contact lost relation to this contact.
I didn’t change logic hooks or code.
All workflows are deactivated.
No idea why it happens and what logic and code lead to deleting relationships
I can just back relations with updating “Deleted” fields to “0” for the middle table.
Logs show me some about this issue but no idea why it happens:
suitecrm_3.log:Tue Apr 2 14:18:15 2019 [5515][1][INFO] Query:UPDATE racf1_consultation_form1_contacts_1_c set deleted=1 , date_modified = ‘2019-04-02 14:18:14’ WHERE racf1_consultation_form1_contacts_1racf1_consultation_form1_ida = ‘a268b27a-48a0-a966-8699-5c6d60e3ccee’ AND racf1_consultation_form1_contacts_1c
Meet anyone the problem descibed or something like that?
Can anyone help with or suppose what it could be?
I’ll try to repeat the problem with test version.
Many thanks in advance.
Alex