SaveAndPublishWithStatus still fires events when you say NO
Hi Guys,
I've written some code to add content to a node with the item has been published. But, when I save the node with SaveAndPublishWithStatus(Node, 0, False). The published event still fires even though i've told it that I don't want the event to fire. So I'm getting into a loop until everything falls over.
If it is a bug, I doubt it will get fixed in the 6.x branch, as all development on that is now frozen aside from important security fixes.
Any chance you'd be able to upgrade to Umbraco 7? If not, maybe you can come up with a workaround (I have a few ideas). Might also be a good idea to post some small amount of code that we can use to reproduce the issue; maybe there is a problem with your code that we could point out.
SaveAndPublishWithStatus still fires events when you say NO
Hi Guys,
I've written some code to add content to a node with the item has been published. But, when I save the node with SaveAndPublishWithStatus(Node, 0, False). The published event still fires even though i've told it that I don't want the event to fire. So I'm getting into a loop until everything falls over.
Any ideas, am I doing something wrong?
Mark
Sounds like an Umbraco bug. What version of Umbraco are you using?
v6.2.5
If it is a bug, I doubt it will get fixed in the 6.x branch, as all development on that is now frozen aside from important security fixes.
Any chance you'd be able to upgrade to Umbraco 7? If not, maybe you can come up with a workaround (I have a few ideas). Might also be a good idea to post some small amount of code that we can use to reproduce the issue; maybe there is a problem with your code that we could point out.
Just posting this here since it seems related: https://our.umbraco.org/forum/developers/api-questions/63993-SaveAndPublishWithStatus-raiseevent=false-no-longer-working-in-version-720
is working on a reply...