?
avatar PhilETaylor
PhilETaylor
8 Oct 2020

Steps to reproduce the issue

first see issues in #31004

2 more logic bugs.

Next lets look at com_redirect
Add a few links in the Redirects component
Select all links
Note that the Actions menu has an "Empty Trash" action ? (Strange as #31004 as an Empty Trash BUTTON not action!!)
Select all links, and click actions, and click empty trash - Confirm ok then get "Delete not permitted." ??????

Screenshot 2020-10-08 at 22 34 25

ok I think, so its true the selected items cannot be trashed if Im dumb and select "Empty Trash" - but nooooooo.... the trash is also NOT EMPTIED!

Also why is "Empty Trash" an action in the Actions submenu, and only available once I select a link.... strange...

So lets now filter on trashed items

note there is no "Empty Trash" BUTTON like there is in Articles views.....

Select ONE trashed link
Select Actions
Select "Empty Trash"

Expected result

EXPECT all to be removed

Actual result

but only one is removed, the one selected.

Additional comments

So "Empty Trash" doesn't PURGE all the trashed items, it only deletes the selected trashed item?

avatar PhilETaylor PhilETaylor - open - 8 Oct 2020
avatar joomla-cms-bot joomla-cms-bot - change - 8 Oct 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Oct 2020
avatar PhilETaylor PhilETaylor - change - 8 Oct 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 8 Oct 2020
avatar brianteeman
brianteeman - comment - 8 Oct 2020

So "Empty Trash" doesn't PURGE all the trashed items, it only deletes the selected trashed item?

Yes thats exactly what it does. It has always worked this way.

Com_redirect has an additional Purge disabled button. This is because after a while of the plugin collecting urls you could end up with thousands of records (by default as disabled) and so you can one click remove them.

avatar PhilETaylor
PhilETaylor - comment - 8 Oct 2020

Just because something has always worked this way doesn't mean its right.

The other bug remains.

avatar brianteeman
brianteeman - comment - 8 Oct 2020

Just because something has always worked this way doesn't mean its right.

No but its the expected and documented behaviour - if you want to have a "purge all" then that would be a new feature/button. Nothing wrong with that and its been asked before. I even had a PR for it in the past.

avatar PhilETaylor
PhilETaylor - comment - 8 Oct 2020

The other bug remains.

That is:

Note that the Actions menu has an "Empty Trash" action ? (Strange as #31004 as an Empty Trash BUTTON not action!!)
Select all links, and click actions, and click empty trash - Confirm ok then get "Delete not permitted." ??????

Screenshot 2020-10-08 at 22 34 25

avatar brianteeman
brianteeman - comment - 10 May 2021

This looks like its been resolved elsewhere - please check and close if confirmed

avatar PhilETaylor PhilETaylor - change - 10 May 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-05-10 10:39:12
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 10 May 2021
avatar PhilETaylor
PhilETaylor - comment - 10 May 2021

yup fixed. ta.

Add a Comment

Login with GitHub to post a comment