I create a logic hook to update the current day name such as monday, Saturday etc. This logic hook is working well if i change any record in Bug module, but there are some workflows scheduled that change bug’s records, I am expecting that each record updated trigger teh logic hook. I realized that some time the process run because I am writing in suitcrm.log but the record is not updated with the day name field. also I realized that the system is not running the logic hook each time when the bug’s record is updated. as I mention before if I use the front end to update any record the logic hook run very well. I mean if I edit any bug and change any value the system update the dayname of the week.
attached the log wher you can se that the logic hook is runing some times, and an also eth code.
log martes means Tuesday this is the record modification exected.
This is the logic hook location
This is the logic hook code
and this is the logic_hook.php location and code
as you can see i wrote teh same logic hook before_save and after_save as a test but the behaivor is teh same. Works well from teh front end. The workflow even though is updating teh record is not triggering the LH.
I read all logic hook issues reported and only find one similar that does not have any answer in 2018 called Workflow doesn’t trigger logic hook
can you help me, maybe is something I am doing wrong?