silverstripe / cwp

Common Web Platform (CWP) features module. We strongly recommend using it for all new CWP projects. Future features will be delivered here.
https://www.cwp.govt.nz
BSD 3-Clause "New" or "Revised" License
10 stars 26 forks source link

[2.3] Archiving and restoring via batch actions doesn't work well with fluent and/or subsites #196

Open robbieaverill opened 5 years ago

robbieaverill commented 5 years ago

CWP 2.3.x-dev via kitchen sink

You can "unpublish & archive" pages via batch actions in the CMS, but if one of the pages is translated in another locale it doesn't seem to archive correctly. The page that isn't will be archived correctly.

The restore action doesn't seem to work at all since you can't select the archived page that exists in another locale (presumably the system thinks it's not archived because it exists), and the page that was actually archived disappears from the tree entirely. (See https://github.com/silverstripe/silverstripe-cms/issues/2426)

Workaround for restore batch actions not working is to use the "Archives" section to restore back to draft.

Test run: https://app.hiptest.com/l/test/11279315/restore-pages-in-a-batch

robbieaverill commented 5 years ago

This might be fixed with https://github.com/tractorcow-farm/silverstripe-fluent/pull/536, which improves fluent's handling of deletions