Open
Description
Describe the bug
When registering a notification handler for an entity saving notification, the Before object incorrectly stores the After state of the object.
Steps To Reproduce
Steps to reproduce the behavior:
- Configure a collection of entities.
- Register a notification handler for saving that entity.
- Set breakpoints in the notification handler to inspect the Before and After objects.
- Go to the UI and modify the name for a particular entity, something like "Modified Entity".
- Save the entity.
- Once the breakpoints are hit, see that the Before and After objects are the same, the Before object has the name "Modified Entity".
Expected behavior
Only the After object should have the updated state.
Screenshots
Environment (please complete the following information):
- Server OS: Windows
- Browser: Chrome
- Umbraco Version: 15.3.0
- Product Version: 15.1.4
This item has been added to our backlog AB#53503