hello
i have some subpanels from my custom modules and sometimes when i create a record from quickcreate, the relation is not created. ( it create the record but not the relation )
I see the log file and it fail to create the relation because it run the query
SELECT * FROM relationships
WHERE deleted=0
AND (
(lhs_module = 'MySettings' AND rhs_module = 'mymodule)
OR
(lhs_module = 'mymodule AND rhs_module = 'MySettings')
)
AND relationship_type='many-to-many'
to get the relationship.
The problem is that it use the module MySettings instead the real module name.
If i try a second time to create a record it works and the query
SELECT * FROM relationships
WHERE deleted=0
AND (
(lhs_module = 'mymodule_2' AND rhs_module = 'mymodule)
OR
(lhs_module = 'mymodule AND rhs_module = 'mymodule_2')
)
AND relationship_type='many-to-many'
is fine.
I try to clean cache , repair relation and still have this problem.
Can someone help me ???
by the way, i'm using sugar 5.2.0a


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks