statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
4.09k stars 534 forks source link

[5.x] Check whether initiator variable exists before using it #11156

Open Jade-GG opened 7 hours ago

Jade-GG commented 7 hours ago

When using an EntrySaved listener and in the case that an initiator does not exist here and you try to use the isInitial() function on this event, you will get an error in the Statamic frontend when trying to save an entry.

Right now we work around this by checking whether these exist ourselves, however this should probably not be necessary 🙂