We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0197d56 commit 8eefbf2Copy full SHA for 8eefbf2
libraries/src/MVC/View/ListView.php
@@ -250,7 +250,13 @@ protected function addToolbar()
250
$bar->appendButton('Custom', $dhtml, 'batch');
251
}
252
253
- if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) {
+ if (
254
+ $canDo->get('core.delete') &&
255
+ (
256
+ $this->state->get('filter.state') == -2 ||
257
+ $this->state->get('filter.published') == -2
258
+ )
259
+ ) {
260
ToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', $viewName . '.delete', 'JTOOLBAR_EMPTY_TRASH');
261
} elseif ($canDo->get('core.edit.state')) {
262
ToolbarHelper::trash($viewName . '.trash');
0 commit comments