I have recently started our CRM from scratch and created packages for all the customizations. We have gone to production and realized that the logic hooks are not being done when the user is not an admin.
Please help..
I have recently started our CRM from scratch and created packages for all the customizations. We have gone to production and realized that the logic hooks are not being done when the user is not an admin.
Please help..
The user has permission edit the fields needed, except they can't import.
I am working with regular logic hooks.
Technically they are all "Not Set" which defaults to Enabled..
Are none of these working? Or is it just one of them?
Can you add $GLOBALS['log']->fatal('@Start ...') at the top of every function?
Could it be because you are executing RAW sql that this is causing issues when a 'normal' user is executing the logic hook?
In any case couple of enhancements. :
1) You can put logic hook classes anywhere you like but I got used toadd them to custom/Extension/modules/<module>/Ext/Logic/. This way you have your logic_hooks.php in custom/Extension/modules/<module>/Ext/LogicHooks/logic_hooks.php and your logic file in the same data structure
2) Start using SugarQuery instead of raw SQL queries.
Are none of these working? Or is it just one of them?
Can you add $GLOBALS['log']->fatal('@Start ...') at the top of every function?
Could it be because you are executing RAW sql that this is causing issues when a 'normal' user is executing the logic hook?
In any case couple of enhancements. :
1) You can put logic hook classes anywhere you like but I got used toadd them to custom/Extension/modules/<module>/Ext/Logic/. This way you have your logic_hooks.php in custom/Extension/modules/<module>/Ext/LogicHooks/logic_hooks.php and your logic file in the same data structure
2) Start using SugarQuery instead of raw SQL queries.
They might run after all, but they delete the data that they are suppose to fill.
We would have e a record with a Curriculum Type and Course name and a non admin user would work on it and then the course name and curriculum type disappears.
I am using beans. see
./Files/custom/Resources/logic_hooks/Courses_Logic_Hooks.php
Set_Curriculum_Type
and
Set_Course_Name