From ef108d2e10533394d3957dad47878ea63264d104 Mon Sep 17 00:00:00 2001 From: Benjamin Trenkle Date: Fri, 8 Sep 2017 14:20:33 +0200 Subject: [PATCH 1/4] enable the workflow by default --- administrator/components/com_content/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_content/config.xml b/administrator/components/com_content/config.xml index 3ea10c1706..3ab65e362f 100644 --- a/administrator/components/com_content/config.xml +++ b/administrator/components/com_content/config.xml @@ -1065,7 +1065,7 @@ type="radio" label="JGLOBAL_WORKFLOWS_ENABLE_LABEL" class="switcher" - default="1" + default="0" > From e13f314bc09404e6676c46839dddb22716518a10 Mon Sep 17 00:00:00 2001 From: Benjamin Trenkle Date: Fri, 8 Sep 2017 14:22:11 +0200 Subject: [PATCH 2/4] Fix wrong enable default value --- administrator/components/com_content/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_content/config.xml b/administrator/components/com_content/config.xml index 3ab65e362f..3ea10c1706 100644 --- a/administrator/components/com_content/config.xml +++ b/administrator/components/com_content/config.xml @@ -1065,7 +1065,7 @@ type="radio" label="JGLOBAL_WORKFLOWS_ENABLE_LABEL" class="switcher" - default="0" + default="1" > From 5cb54a93e5bbde870ab862692c33156edec4ff56 Mon Sep 17 00:00:00 2001 From: Benjamin Trenkle Date: Fri, 8 Sep 2017 14:22:33 +0200 Subject: [PATCH 3/4] Fix enable check --- administrator/components/com_content/Helper/ContentHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_content/Helper/ContentHelper.php b/administrator/components/com_content/Helper/ContentHelper.php index 6fa5cfb661..ebea654834 100644 --- a/administrator/components/com_content/Helper/ContentHelper.php +++ b/administrator/components/com_content/Helper/ContentHelper.php @@ -44,7 +44,7 @@ public static function addSubmenu($vName) $vName == 'categories' ); - if (\JComponentHelper::isEnabled('com_fields') && \JComponentHelper::getParams('com_content')->get('workflows_enable')) + if (\JComponentHelper::isEnabled('com_workflows') && \JComponentHelper::getParams('com_content')->get('workflows_enable', 1)) { \JHtmlSidebar::addEntry( \JText::_('COM_CONTENT_SUBMENU_WORKFLOW'), From 839c1292571e8140b0ba6b5709d88f36648d93a9 Mon Sep 17 00:00:00 2001 From: Benjamin Trenkle Date: Fri, 8 Sep 2017 14:24:00 +0200 Subject: [PATCH 4/4] Set workflow visibility to 1 as default --- administrator/modules/mod_menu/preset/enabled.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/modules/mod_menu/preset/enabled.php b/administrator/modules/mod_menu/preset/enabled.php index a0fe2b5af0..1b86d3e6cf 100644 --- a/administrator/modules/mod_menu/preset/enabled.php +++ b/administrator/modules/mod_menu/preset/enabled.php @@ -254,7 +254,7 @@ $this->getParent(); } - if ($comWorkflowEnabled && ComponentHelper::getParams('com_content')->get('workflows_enable')) + if ($comWorkflowEnabled && ComponentHelper::getParams('com_content')->get('workflows_enable', 1)) { $this->addChild( new MenuNode(