Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I set up a class that inherits from ApplicationBase and wires into Document.BeforeSave in the class constructor. When fire the old debugger and watch it, I see Document.BeforeSave being fired twice for each time I press the Save button in the backoffice. Also, when I examine the properties of sender, they do not represent the currently saving items, but rather the previously saved version. By this I mean I open the document in the backoffice set a textpage's body text to "Version A" and save it. If I then change the body text to "Version B" and hit save, when my the event is fired the sender's bodyText property still has "Version A" in it.
I am testing this on a clean install of Umbraco 4.7
Why is the event firing twice?
How can I access the properties of the currently saving document?
Did you ever find a solution for this?
I'm having the exact same problem... :o/
I'm also having the same problem. This seems similar to a bug that is marked as closed in CodePlex - http://umbraco.codeplex.com/workitem/21847?ProjectName=umbraco Maybe it should be re-opened?
Still in Umbraco 4.8.0
So go vote for it - I have :) - http://issues.umbraco.org/issue/U4-651
Done! Thxs for the remainder.
I have the same problem in Umbraco 4.7.2 (Document_BeforeSave fires twice) but I could use it though.
The first fire contains the old properties in Sender, while the new properties are not yet in DB, so they can't be loaded from anywhere.
The second fire
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted