[v5] Running page save/update in after hook results in phantom unsaved changes notification #6869
Labels
type: regression 🚨
Is a regression between versions
Milestone
Description
If you need to change something in a page automatically - in my case auto-generate
title
based on other fields - it was always best to do so in apage.update:after
hook. Inv5-beta.1
, the originating update is saved correctly, the hook is run (and change persisted), but the tracking system (sometimes) incorrectly keeps the page marked as changed (or re-marks, maybe?).Sometimes the yellow buttons popup right away, sometimes after refresh, sometimes they don't pop up at all and page isn't marked changed.
I observe this pretty often (
> 80%
) when the page is saved with ⌘S, but trigger it slightly less (60%
?) while saving by clicking the save button.Expected behavior
Screenshots
CleanShot.2024-12-16.at.22.27.28.mp4
To reproduce
changeTitle: false
Note: additionally, I don't remember having to release the kirby impersonate call before, but now it triggers the "other user is editing this page" popup.
Your setup
Kirby Version
v5-beta.1
The text was updated successfully, but these errors were encountered: