silverstripe-gridfield-betterbuttons icon indicating copy to clipboard operation
silverstripe-gridfield-betterbuttons copied to clipboard

"Unpublish" completely removes page from site

Open nzstephenf opened this issue 10 years ago • 1 comments
trafficstars

I've come across a little issue under 'Versioning'. Articles are managed in a ModelAdmin environment with the use of BetterButtons. You have the option to 'Cancel Draft Changes' or 'Unpublish'. When clicking onto 'Unpublish', you'd expect the page to be just deleted from the "Live" stage of the website. After clicking onto 'Unpublish' the usual 'Delete' button would appear on the far-right. But the thing is, the 'Delete' is redundant always as the page has been removed. Because when you click onto 'Unpublish' you delete the page on both of the Draft and Live Stage sites. So when you have content that you just wanted to publish later but you accidentally published it by clicking "Save and Publish" and you click 'Unpublish' so you can still keep the page as a draft but removed from the live site. You've lost everything. All traces of the page you worked has been wiped.

nzstephenf avatar Feb 25 '15 10:02 nzstephenf

After implementing the fixes in #79 and #80, I no longer see the behavior you're describing. Those fixes address proper saving of versioned data object records, which might solve your problem as well (since, if they're properly saved, the 'Unpublish' routine may behave properly as well).

irkeepin avatar Mar 03 '15 15:03 irkeepin