Open exponentcms opened 4 years ago
Note to self:
Therefore to move a module to the recycle bin involves removing it from the containers table and setting its sectionref->refcount to 0...otherwise the module is untouches (expConfigs content_xxx attachments, & items entries are untouched)
And to move a recycled module out of the recycle bin changes the sectionref->refcount to 1 and adds a new containers table entry
(from [cc8ef5e696cef1f0ab0381e6fa6cfb3f4d1cc111]) Robusts recycle bin operation which should now more consistently work...all modules from deleted pages (content pages moved to standalone first) are now placed in the recycle bin, all nested modules inside a deleted container are now placed in the recycle bin, all module items (assoc, attached, configs) are removed when a module is removed from the recycle bin, the add module dialog 'recycle bin' status is now more accurate [#1035] https://github.com/exponentcms/exponent-cms/commit/cc8ef5e696cef1f0ab0381e6fa6cfb3f4d1cc111
Now that the basic function of the recycle bin is MUCH more consistent, we should make it a little smart so that:
Clarification on desire to not sent all modules to recycle bin:
Rollup of tickets #1032 #1033 #1034
The recycle bin should work as such:
We had tended to delete the object after sending it to the recycle bin (navigation & container) is some cases