Open juliankehne opened 2 weeks ago
Cannot reproduce this locally, but I can on the test server. Since I have redis disabled locally, it is probably a redis caching issue.
I mentioned during the call that I could reproduce it on the test system, even so far that I could not delete the page, even after refreshing - I found the problem with that @PeterNerlich: there were archived pages still attributed to this parent page so it appeared empty in the page tree but for system logic was not, bcs the archived pages are connected to it. I only saw that once I opened the page and tried to delete it there... so probably it is what David says :)
there were archived pages still attributed to this parent page so it appeared empty in the page tree but for system logic was not
That makes sense. The popup text does mention archived sub pages, but I think the communication here can be dramatically improved. We should at least make the popup more dynamic and tell exactly whether the page has archived sub pages or not.
This is a completely new idea I don't think we have anywhere else in the system, but what do you think about highlighting the Archived pages button when hovering over the disabled delete icon of a page that has archived children? And maybe even blinking it twice when the disabled delete icon is clicked?
We could think about that but definitely low prio as it is a problem that only affects us and not the municipalities. I think we have bigger issues to work on right now :)
Describe the Bug
Its not directly possible to delete a page after deleting its sub-pages. The parent page first has to be updated or the page tree needs to be refreshed (e.g. by moving a page or creating a new page) before the page can be deleted.
Steps to Reproduce
Expected Behavior
"Delete" button should be clickable without having to update the page or page tree after deleting the sub-pages
Actual Behavior
After deleting the last sub-page of a page the "Delete" icon is greyed out and cannot be clicked. It only becomes available once page is updated or the page tree was refreshed, e.g. by moving a page or creating a new one.
Additional Information
Found in Version: 2024.10.12-alpha