In triggers which Events can Set Session Var be used with?
I want to fire an email on asset status changed. This is a trigger which FAILs.
If you switch the Event to asset accessed it works fine. This is a trigger that WORKS.
Now, why does the trigger fail? This is the warning:
Fatal error: Uncaught exception 'Exception' with message 'Assertion failed: [NULL] "" is not a valid asset ID' in /home/websites/interpub_3-22-2/core/include/assertions.inc:507 Stack trace: #0 /home/websites/interpub_3-22-2/core/include/assertions.inc(480): trigger_exception('[NULL] "" is no...', false, true) #1 /home/websites/interpub_3-22-2/core/include/asset_manager.inc(1069): assert_valid_assetid('') #2 /home/websites/interpub_3-22-2/core/attributes/email_format/email_format.inc(416): Asset_Manager->getAsset('') #3 /home/websites/interpub_3-22-2/core/assets/system/triggers/trigger_action_types/trigger_action_send_email/trigger_action_send_email.inc(183): Asset_Attribute_Email_Format->sendMail(Array) #4 [internal function]: Trigger_Action_Send_Email::execute(Array, Array) #5 /home/websites/interpub_3-22-2/core/assets/system/triggers/trigger_manager/trigger_manager.inc(1489): call_user_func_array(Array, Array) #6 /home/websites/interpub_3-22-2/core/assets/system/triggers/trigger_manager/trigger_manager.inc(1064): Trigge in /home/websites/interpub_3-22-2/core/include/assertions.inc on line 507It seems the Session Var is not being picked up and hence the system is trying to find an id of NULL.
Please any help will be appreciated.
This issue is present in:
3.26.1
3.22.2
3.22.1
