Go and trash two articles
Use filter options to show trashed items
Note that the "Empty Trash" button is greyed out - There is no way to purge ALL items from the trash
Select a trashed item - note now you can use "Empty Trash" button - but it only deletes the selected item and doesn't purge all trashed articles
Also, while you have a trashed item selected, click Actions button, note that Trash is a selectable action in there... but this item is ALREADY trashed!
Empty Trash button is a purge all trashed articles button
No "Trash" Action when items are already in the trash and when filtered by trashed items.
As explained above.
Labels |
Added:
?
|
Title |
|
Its greyed out until you select items....
Its not a purge button, its a Trash item button and acts just like the Trash Action does... It makes no sense that its called "Empty Trash"
When I empty my trash cans, I don't take out one thing only. I tip up the trash can and empty it all... PURGE....
I see Joomla 3 has this strange behaviour too...
ok lets ignore the "Empty Trash" actually really being a "delete this item" from the db ...
The other bug in this issue remains too.
The other bug
Expected result = No "Trash" Action when items are already in the trash and when filtered by trashed items.
I agree it would be nice to take of the Actions => Trash when filtered by Trashed.
In the articles view for example we could have something like
if (Factory::getApplication()->input->get('filter')[2] !== '-2')
{
$childBar->trash('articles.trash')->listCheck(true);
}
Because we get a sequential array
["filter"]=> array(5) { ["search"]=> string(0) "" ["featured"]=> string(0) "" ["published"]=> string(2) "-2" ["language"]=> string(0) "" ["level"]=> string(0) "" }
Me not php good enough to fetch by published
key ;)
As first step can we rename "Empty Trash" to "Delete" ?
That makes more sense yes, but it can also then be put into the Actions menu too, as its a normal action (unlike a purge task that it assumed it is when not in the action dropdown)
Yes I know but till someone modify the action array (because this interacts also with the workflow) a button text change in the first place would "reduce" the issue
You ARE confused and that proves my point nicely :-)
Empty trash on a mac PURGES EVERYTHING IN TRASH - you don't need to select anything
That's my point. In joomla you can safely assume Empty Trash means to PURGE EVERYTHING IN TRASH but that's NOT WHAT it does in joomla
In joomla Empty Trash button just deletes SELECTED ITEMS ONLY from the trash.
yeah. after siesta confusion...
Labels |
Added:
J4 Issue
|
This looks like it has been resolved elsewhere - please check and confirm
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-05-10 10:41:01 |
Closed_By | ⇒ | PhilETaylor |
all good. ta.