Closed Can't force whenSaveable to run after save

Kirby

Well-known member
Licensed customer
Affected version
2.3.7
Sometimes it is useful to run code after an entity has been saved depending of the state of the entity before saving.

There already is method whenSaveable() that allows to do so if called while a write is already taking place - but it is not (nicely) possible to force the callback to be executed after the entity is saved.

Could the method get a parameter to force running the callback after save?
 
Automated triage: As designed

Thank you for reporting this issue. This works as intended: the callback is held back only while a save is already running, and otherwise it runs immediately. Adding an option to always defer it until after the next save would be a new feature, so please post it as a suggestion.

This is an automated assessment. A member of staff may review and update it.
 

Similar threads

Back
Top Bottom