diff --git a/administrator/components/com_workflow/View/Transitions/Html.php b/administrator/components/com_workflow/View/Transitions/Html.php index f3307def0242d..e8d1bcdeab1e8 100644 --- a/administrator/components/com_workflow/View/Transitions/Html.php +++ b/administrator/components/com_workflow/View/Transitions/Html.php @@ -145,11 +145,14 @@ protected function addToolbar() ToolbarHelper::editList('transition.edit'); ToolbarHelper::publishList('transitions.publish'); ToolbarHelper::unpublishList('transitions.unpublish'); - ToolbarHelper::trash('transitions.trash'); if ($this->state->get("filter.published") === "-2") { ToolbarHelper::deleteList(\JText::_('COM_WORKFLOW_ARE_YOU_SURE'), 'transitions.delete'); } + else + { + ToolbarHelper::trash('transitions.trash'); + } } } diff --git a/administrator/components/com_workflow/View/Workflows/Html.php b/administrator/components/com_workflow/View/Workflows/Html.php index 68fd06d41423c..665b499011de1 100644 --- a/administrator/components/com_workflow/View/Workflows/Html.php +++ b/administrator/components/com_workflow/View/Workflows/Html.php @@ -117,7 +117,6 @@ protected function addToolbar() ToolbarHelper::publishList('workflows.publish'); ToolbarHelper::unpublishList('workflows.unpublish'); ToolbarHelper::archiveList('workflows.archive'); - ToolbarHelper::trash('workflows.trash'); ToolbarHelper::checkin('workflows.checkin', 'JTOOLBAR_CHECKIN', true); ToolbarHelper::makeDefault('workflows.setDefault', 'COM_WORKFLOW_TOOLBAR_SET_HOME'); @@ -125,6 +124,11 @@ protected function addToolbar() { ToolbarHelper::deleteList(\JText::_('COM_WORKFLOW_ARE_YOU_SURE'), 'workflows.delete'); } + else + { + ToolbarHelper::trash('workflows.trash'); + } + ToolbarHelper::help('JHELP_WORKFLOWS_LIST'); }