|
checked_out) : ?>
@@ -209,6 +285,11 @@
$this->loadTemplate('batch_body')
); ?>
+
+
+
+
+
diff --git a/administrator/components/com_modules/tmpl/modules/default_batch_body.php b/administrator/components/com_modules/tmpl/modules/default_batch_body.php
index 2a52e9c45f6..d70543f87e9 100644
--- a/administrator/components/com_modules/tmpl/modules/default_batch_body.php
+++ b/administrator/components/com_modules/tmpl/modules/default_batch_body.php
@@ -9,6 +9,8 @@
defined('_JEXEC') or die;
+use Joomla\CMS\Component\ComponentHelper;
+use Joomla\CMS\Factory;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
@@ -17,6 +19,10 @@
$clientId = $this->state->get('client_id');
+$params = ComponentHelper::getParams('com_modules');
+
+$user = Factory::getUser();
+
// Show only Module Positions of published Templates
$published = 1;
$positions = HTMLHelper::_('modules.positions', $clientId, $published);
@@ -59,6 +65,13 @@
+ authorise('core.admin', 'com_modules') && $params->get('workflow_enabled')) : ?>
+
+
= 0) : ?>
diff --git a/administrator/language/en-GB/com_modules.ini b/administrator/language/en-GB/com_modules.ini
index cfb0cc3c87b..b3ad6edd43a 100644
--- a/administrator/language/en-GB/com_modules.ini
+++ b/administrator/language/en-GB/com_modules.ini
@@ -21,6 +21,7 @@ COM_MODULES_BATCH_TIP="If choosing to copy a module, any other actions selected
COM_MODULES_CHANGE_POSITION_BUTTON="Select"
COM_MODULES_CHANGE_POSITION_TITLE="Change"
COM_MODULES_COLLAPSE="Collapse"
+COM_MODULES_CONFIG_INTEGRATION_SETTINGS_DESC="These settings determine how the Modules Component will integrate with other extensions."
COM_MODULES_CONFIGURATION="Module: Options"
COM_MODULES_CUSTOM_OUTPUT="Custom Output"
COM_MODULES_CUSTOM_POSITION="Active Positions"
@@ -190,6 +191,10 @@ COM_MODULES_SUBITEMS="Sub-items"
COM_MODULES_TABLE_CAPTION="Table of Modules"
COM_MODULES_TYPE_CHOOSE="Select a Module Type"
COM_MODULES_TYPE_OR_SELECT_POSITION="Type or Select a Position"
+COM_MODULES_WORKFLOW="Workflow"
+COM_MODULES_WORKFLOWS="Workflows"
+COM_MODULES_WORKFLOW_NOT_FOUND="No default workflow available, please define one or contact an administrator."
+COM_MODULES_WORKFLOW_TRANSITION_NOT_ALLOWED="You're not allowed to execute this transition"
COM_MODULES_XML_DESCRIPTION="Component for module management in the Administrator Backend."
; Alternate language strings for the rules form field
diff --git a/administrator/language/en-GB/com_workflow.ini b/administrator/language/en-GB/com_workflow.ini
index 9f32556fdb8..bea4d50dcd7 100644
--- a/administrator/language/en-GB/com_workflow.ini
+++ b/administrator/language/en-GB/com_workflow.ini
@@ -8,6 +8,7 @@ COM_WORKFLOW_AUTHOR="Author"
COM_WORKFLOW_BASIC_STAGE="Basic Stage"
COM_WORKFLOW_BASIC_TAB="Basic"
COM_WORKFLOW_BASIC_WORKFLOW="Basic Workflow"
+COM_WORKFLOW_BASIC_WORKFLOW_MODULES="Basic Workflow: Modules"
COM_WORKFLOW_CHOOSE_CONTEXT_LABEL="Context"
COM_WORKFLOW_CONFIGURATION="Workflow: Options"
COM_WORKFLOW_COUNT_STAGES="Stages"
diff --git a/administrator/language/en-GB/mod_menu.ini b/administrator/language/en-GB/mod_menu.ini
index b13e0265005..3b99409ab6e 100644
--- a/administrator/language/en-GB/mod_menu.ini
+++ b/administrator/language/en-GB/mod_menu.ini
@@ -35,6 +35,7 @@ MOD_MENU_EXTENSIONS_LANGUAGE_MANAGER="Languages"
MOD_MENU_EXTENSIONS_MODULE_MANAGER="Modules"
MOD_MENU_EXTENSIONS_MODULE_MANAGER_ADMINISTRATOR="Administrator Modules"
MOD_MENU_EXTENSIONS_MODULE_MANAGER_SITE="Site Modules"
+MOD_MENU_EXTENSIONS_MODULE_WORKFLOWS="Modules: Workflows"
MOD_MENU_EXTENSIONS_PLUGIN_MANAGER="Plugins"
MOD_MENU_EXTENSIONS_TEMPLATE_MANAGER="Templates"
MOD_MENU_FIELD_CHECK_DESC="Check for the presence of important menu items."
diff --git a/installation/sql/mysql/base.sql b/installation/sql/mysql/base.sql
index 99199575edf..bbaa9049472 100644
--- a/installation/sql/mysql/base.sql
+++ b/installation/sql/mysql/base.sql
@@ -25,7 +25,7 @@ CREATE TABLE IF NOT EXISTS `#__assets` (
--
INSERT INTO `#__assets` (`id`, `parent_id`, `lft`, `rgt`, `level`, `name`, `title`, `rules`) VALUES
-(1, 0, 0, 161, 0, 'root.1', 'Root Asset', '{"core.login.site":{"6":1,"2":1},"core.login.admin":{"6":1},"core.login.api":{"8":1},"core.login.offline":{"6":1},"core.admin":{"8":1},"core.manage":{"7":1},"core.create":{"6":1,"3":1},"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1},"core.edit.own":{"6":1,"3":1}}'),
+(1, 0, 0, 171, 0, 'root.1', 'Root Asset', '{"core.login.site":{"6":1,"2":1},"core.login.admin":{"6":1},"core.login.api":{"8":1},"core.login.offline":{"6":1},"core.admin":{"8":1},"core.manage":{"7":1},"core.create":{"6":1,"3":1},"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1},"core.edit.own":{"6":1,"3":1}}'),
(2, 1, 1, 2, 1, 'com_admin', 'com_admin', '{}'),
(3, 1, 3, 6, 1, 'com_banners', 'com_banners', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
(4, 1, 7, 8, 1, 'com_cache', 'com_cache', '{"core.admin":{"7":1},"core.manage":{"7":1}}'),
@@ -41,24 +41,24 @@ INSERT INTO `#__assets` (`id`, `parent_id`, `lft`, `rgt`, `level`, `name`, `titl
(15, 1, 49, 50, 1, 'com_media', 'com_media', '{"core.admin":{"7":1},"core.manage":{"6":1},"core.create":{"3":1},"core.delete":{"5":1}}'),
(16, 1, 51, 54, 1, 'com_menus', 'com_menus', '{"core.admin":{"7":1}}'),
(17, 1, 55, 56, 1, 'com_messages', 'com_messages', '{"core.admin":{"7":1},"core.manage":{"7":1}}'),
-(18, 1, 57, 128, 1, 'com_modules', 'com_modules', '{"core.admin":{"7":1}}'),
-(19, 1, 129, 132, 1, 'com_newsfeeds', 'com_newsfeeds', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
-(20, 1, 133, 134, 1, 'com_plugins', 'com_plugins', '{"core.admin":{"7":1}}'),
-(21, 1, 135, 136, 1, 'com_redirect', 'com_redirect', '{"core.admin":{"7":1}}'),
-(23, 1, 137, 138, 1, 'com_templates', 'com_templates', '{"core.admin":{"7":1}}'),
-(24, 1, 143, 146, 1, 'com_users', 'com_users', '{"core.admin":{"7":1}}'),
-(26, 1, 147, 148, 1, 'com_wrapper', 'com_wrapper', '{}'),
+(18, 1, 57, 138, 1, 'com_modules', 'com_modules', '{"core.admin":{"7":1}}'),
+(19, 1, 139, 142, 1, 'com_newsfeeds', 'com_newsfeeds', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
+(20, 1, 143, 144, 1, 'com_plugins', 'com_plugins', '{"core.admin":{"7":1}}'),
+(21, 1, 145, 146, 1, 'com_redirect', 'com_redirect', '{"core.admin":{"7":1}}'),
+(23, 1, 147, 148, 1, 'com_templates', 'com_templates', '{"core.admin":{"7":1}}'),
+(24, 1, 153, 156, 1, 'com_users', 'com_users', '{"core.admin":{"7":1}}'),
+(26, 1, 157, 158, 1, 'com_wrapper', 'com_wrapper', '{}'),
(27, 8, 18, 19, 2, 'com_content.category.2', 'Uncategorised', '{}'),
(28, 3, 4, 5, 2, 'com_banners.category.3', 'Uncategorised', '{}'),
(29, 7, 14, 15, 2, 'com_contact.category.4', 'Uncategorised', '{}'),
-(30, 19, 130, 131, 2, 'com_newsfeeds.category.5', 'Uncategorised', '{}'),
-(32, 24, 144, 145, 2, 'com_users.category.7', 'Uncategorised', '{}'),
-(33, 1, 149, 150, 1, 'com_finder', 'com_finder', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
-(34, 1, 151, 152, 1, 'com_joomlaupdate', 'com_joomlaupdate', '{}'),
-(35, 1, 153, 154, 1, 'com_tags', 'com_tags', '{}'),
-(36, 1, 155, 156, 1, 'com_contenthistory', 'com_contenthistory', '{}'),
-(37, 1, 157, 158, 1, 'com_ajax', 'com_ajax', '{}'),
-(38, 1, 159, 160, 1, 'com_postinstall', 'com_postinstall', '{}'),
+(30, 19, 140, 141, 2, 'com_newsfeeds.category.5', 'Uncategorised', '{}'),
+(32, 24, 154, 155, 2, 'com_users.category.7', 'Uncategorised', '{}'),
+(33, 1, 159, 160, 1, 'com_finder', 'com_finder', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
+(34, 1, 161, 162, 1, 'com_joomlaupdate', 'com_joomlaupdate', '{}'),
+(35, 1, 163, 164, 1, 'com_tags', 'com_tags', '{}'),
+(36, 1, 165, 166, 1, 'com_contenthistory', 'com_contenthistory', '{}'),
+(37, 1, 167, 168, 1, 'com_ajax', 'com_ajax', '{}'),
+(38, 1, 169, 170, 1, 'com_postinstall', 'com_postinstall', '{}'),
(39, 18, 58, 59, 2, 'com_modules.module.1', 'Main Menu', '{}'),
(40, 18, 60, 61, 2, 'com_modules.module.2', 'Login', '{}'),
(41, 18, 62, 63, 2, 'com_modules.module.3', 'Popular Articles', '{}'),
@@ -84,8 +84,8 @@ INSERT INTO `#__assets` (`id`, `parent_id`, `lft`, `rgt`, `level`, `name`, `titl
(62, 56, 31, 32, 3, 'com_content.transition.5', 'Feature', '{}'),
(63, 56, 33, 34, 3, 'com_content.transition.6', 'Unfeature', '{}'),
(64, 56, 35, 36, 3, 'com_content.transition.7', 'Publish & Feature', '{}'),
-(65, 1, 139, 140, 1, 'com_privacy', 'com_privacy', '{}'),
-(66, 1, 141, 142, 1, 'com_actionlogs', 'com_actionlogs', '{}'),
+(65, 1, 149, 150, 1, 'com_privacy', 'com_privacy', '{}'),
+(66, 1, 151, 152, 1, 'com_actionlogs', 'com_actionlogs', '{}'),
(67, 18, 74, 75, 2, 'com_modules.module.88', 'Latest Actions', '{}'),
(68, 18, 76, 77, 2, 'com_modules.module.89', 'Privacy Dashboard', '{}'),
(70, 18, 88, 89, 2, 'com_modules.module.103', 'Site', '{}'),
@@ -105,7 +105,12 @@ INSERT INTO `#__assets` (`id`, `parent_id`, `lft`, `rgt`, `level`, `name`, `titl
(85, 18, 120, 121, 2, 'com_modules.module.108', 'Privacy Status', '{}'),
(86, 18, 122, 123, 2, 'com_modules.module.96', 'Popular Articles', '{}'),
(87, 18, 124, 125, 2, 'com_modules.module.97', 'Recently Added Articles', '{}'),
-(88, 18, 126, 127, 2, 'com_modules.module.98', 'Logged-in Users', '{}');
+(88, 18, 126, 127, 2, 'com_modules.module.98', 'Logged-in Users', '{}'),
+(89, 18, 128, 137, 2, 'com_modules.workflow.1', 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES', '{}'),
+(90, 89, 129, 130, 3, 'com_modules.state.1', 'COM_WORKFLOW_BASIC_STAGE', '{}'),
+(91, 89, 131, 132, 3, 'com_modules.transition.1', 'Publish', '{}'),
+(92, 89, 133, 134, 3, 'com_modules.transition.2', 'Unpublish', '{}'),
+(93, 89, 135, 136, 3, 'com_modules.transition.3', 'Trash', '{}');
-- --------------------------------------------------------
@@ -1077,7 +1082,8 @@ CREATE TABLE IF NOT EXISTS `#__workflows` (
--
INSERT INTO `#__workflows` (`id`, `asset_id`, `published`, `title`, `description`, `extension`, `default`, `ordering`, `created`, `created_by`, `modified`, `modified_by`) VALUES
-(1, 56, 1, 'COM_WORKFLOW_BASIC_WORKFLOW', '', 'com_content.article', 1, 1, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 42);
+(1, 56, 1, 'COM_WORKFLOW_BASIC_WORKFLOW', '', 'com_content.article', 1, 1, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 42),
+(2, 89, 1, 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES', '', 'com_modules.module', 1, 1, CURRENT_TIMESTAMP(), 42, CURRENT_TIMESTAMP(), 42);
-- --------------------------------------------------------
@@ -1126,7 +1132,8 @@ CREATE TABLE IF NOT EXISTS `#__workflow_stages` (
--
INSERT INTO `#__workflow_stages` (`id`, `asset_id`, `ordering`, `workflow_id`, `published`, `title`, `description`, `default`) VALUES
-(1, 0, 1, 1, 1, 'COM_WORKFLOW_BASIC_STAGE', '', 1);
+(1, 0, 1, 1, 1, 'COM_WORKFLOW_BASIC_STAGE', '', 1),
+(2, 90, 1, 2, 1, 'COM_WORKFLOW_BASIC_STAGE', '', 1);
-- --------------------------------------------------------
@@ -1167,4 +1174,10 @@ INSERT INTO `#__workflow_transitions` (`id`, `asset_id`, `published`, `ordering`
(4, 61, 1, 4, 1, 'Archive', '', -1, 1, '{"publishing":"2"}'),
(5, 62, 1, 5, 1, 'Feature', '', -1, 1, '{"featuring":"1"}'),
(6, 63, 1, 6, 1, 'Unfeature', '', -1, 1, '{"featuring":"0"}'),
-(7, 64, 1, 7, 1, 'Publish & Feature', '', -1, 1, '{"publishing":"1","featuring":"1"}');
+(7, 64, 1, 7, 1, 'Publish & Feature', '', -1, 1, '{"publishing":"1","featuring":"1"}'),
+(8, 92, 1, 1, 2, 'Unpublish', '', -1, 2, '{"publishing":"0"}'),
+(9, 91, 1, 2, 2, 'Publish', '', -1, 2, '{"publishing":"1"}'),
+(10, 93, 1, 3, 2, 'Trash', '', -1, 2, '{"publishing":"-2"}');
+
+INSERT INTO `#__workflow_associations` (`item_id`, `stage_id`, `extension`)
+SELECT `id`, 2, 'com_modules.module' FROM `#__modules`;
diff --git a/installation/sql/postgresql/base.sql b/installation/sql/postgresql/base.sql
index 8cda51c8fee..6c3ec5eccf5 100644
--- a/installation/sql/postgresql/base.sql
+++ b/installation/sql/postgresql/base.sql
@@ -31,7 +31,7 @@ COMMENT ON COLUMN "#__assets"."rules" IS 'JSON encoded access control.';
--
INSERT INTO "#__assets" ("id", "parent_id", "lft", "rgt", "level", "name", "title", "rules") VALUES
-(1, 0, 0, 161, 0, 'root.1', 'Root Asset', '{"core.login.site":{"6":1,"2":1},"core.login.admin":{"6":1},"core.login.api":{"8":1},"core.login.offline":{"6":1},"core.admin":{"8":1},"core.manage":{"7":1},"core.create":{"6":1,"3":1},"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1},"core.edit.own":{"6":1,"3":1}}'),
+(1, 0, 0, 171, 0, 'root.1', 'Root Asset', '{"core.login.site":{"6":1,"2":1},"core.login.admin":{"6":1},"core.login.api":{"8":1},"core.login.offline":{"6":1},"core.admin":{"8":1},"core.manage":{"7":1},"core.create":{"6":1,"3":1},"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1},"core.edit.own":{"6":1,"3":1}}'),
(2, 1, 1, 2, 1, 'com_admin', 'com_admin', '{}'),
(3, 1, 3, 6, 1, 'com_banners', 'com_banners', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
(4, 1, 7, 8, 1, 'com_cache', 'com_cache', '{"core.admin":{"7":1},"core.manage":{"7":1}}'),
@@ -47,24 +47,24 @@ INSERT INTO "#__assets" ("id", "parent_id", "lft", "rgt", "level", "name", "titl
(15, 1, 49, 50, 1, 'com_media', 'com_media', '{"core.admin":{"7":1},"core.manage":{"6":1},"core.create":{"3":1},"core.delete":{"5":1}}'),
(16, 1, 51, 54, 1, 'com_menus', 'com_menus', '{"core.admin":{"7":1}}'),
(17, 1, 55, 56, 1, 'com_messages', 'com_messages', '{"core.admin":{"7":1},"core.manage":{"7":1}}'),
-(18, 1, 57, 128, 1, 'com_modules', 'com_modules', '{"core.admin":{"7":1}}'),
-(19, 1, 129, 132, 1, 'com_newsfeeds', 'com_newsfeeds', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
-(20, 1, 133, 134, 1, 'com_plugins', 'com_plugins', '{"core.admin":{"7":1}}'),
-(21, 1, 135, 136, 1, 'com_redirect', 'com_redirect', '{"core.admin":{"7":1}}'),
-(23, 1, 137, 138, 1, 'com_templates', 'com_templates', '{"core.admin":{"7":1}}'),
-(24, 1, 143, 146, 1, 'com_users', 'com_users', '{"core.admin":{"7":1}}'),
-(26, 1, 147, 148, 1, 'com_wrapper', 'com_wrapper', '{}'),
+(18, 1, 57, 138, 1, 'com_modules', 'com_modules', '{"core.admin":{"7":1}}'),
+(19, 1, 139, 142, 1, 'com_newsfeeds', 'com_newsfeeds', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
+(20, 1, 143, 144, 1, 'com_plugins', 'com_plugins', '{"core.admin":{"7":1}}'),
+(21, 1, 145, 146, 1, 'com_redirect', 'com_redirect', '{"core.admin":{"7":1}}'),
+(23, 1, 147, 148, 1, 'com_templates', 'com_templates', '{"core.admin":{"7":1}}'),
+(24, 1, 153, 156, 1, 'com_users', 'com_users', '{"core.admin":{"7":1}}'),
+(26, 1, 157, 158, 1, 'com_wrapper', 'com_wrapper', '{}'),
(27, 8, 18, 19, 2, 'com_content.category.2', 'Uncategorised', '{}'),
(28, 3, 4, 5, 2, 'com_banners.category.3', 'Uncategorised', '{}'),
(29, 7, 14, 15, 2, 'com_contact.category.4', 'Uncategorised', '{}'),
-(30, 19, 130, 131, 2, 'com_newsfeeds.category.5', 'Uncategorised', '{}'),
-(32, 24, 144, 145, 2, 'com_users.category.7', 'Uncategorised', '{}'),
-(33, 1, 149, 150, 1, 'com_finder', 'com_finder', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
-(34, 1, 151, 152, 1, 'com_joomlaupdate', 'com_joomlaupdate', '{}'),
-(35, 1, 153, 154, 1, 'com_tags', 'com_tags', '{}'),
-(36, 1, 155, 156, 1, 'com_contenthistory', 'com_contenthistory', '{}'),
-(37, 1, 157, 158, 1, 'com_ajax', 'com_ajax', '{}'),
-(38, 1, 159, 160, 1, 'com_postinstall', 'com_postinstall', '{}'),
+(30, 19, 140, 141, 2, 'com_newsfeeds.category.5', 'Uncategorised', '{}'),
+(32, 24, 154, 155, 2, 'com_users.category.7', 'Uncategorised', '{}'),
+(33, 1, 159, 160, 1, 'com_finder', 'com_finder', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
+(34, 1, 161, 162, 1, 'com_joomlaupdate', 'com_joomlaupdate', '{}'),
+(35, 1, 163, 164, 1, 'com_tags', 'com_tags', '{}'),
+(36, 1, 165, 166, 1, 'com_contenthistory', 'com_contenthistory', '{}'),
+(37, 1, 167, 168, 1, 'com_ajax', 'com_ajax', '{}'),
+(38, 1, 169, 170, 1, 'com_postinstall', 'com_postinstall', '{}'),
(39, 18, 58, 59, 2, 'com_modules.module.1', 'Main Menu', '{}'),
(40, 18, 60, 61, 2, 'com_modules.module.2', 'Login', '{}'),
(41, 18, 62, 63, 2, 'com_modules.module.3', 'Popular Articles', '{}'),
@@ -90,8 +90,8 @@ INSERT INTO "#__assets" ("id", "parent_id", "lft", "rgt", "level", "name", "titl
(62, 56, 31, 32, 3, 'com_content.transition.5', 'Feature', '{}'),
(63, 56, 33, 34, 3, 'com_content.transition.6', 'Unfeature', '{}'),
(64, 56, 35, 36, 3, 'com_content.transition.7', 'Publish & Feature', '{}'),
-(65, 1, 139, 140, 1, 'com_privacy', 'com_privacy', '{}'),
-(66, 1, 141, 142, 1, 'com_actionlogs', 'com_actionlogs', '{}'),
+(65, 1, 149, 150, 1, 'com_privacy', 'com_privacy', '{}'),
+(66, 1, 151, 152, 1, 'com_actionlogs', 'com_actionlogs', '{}'),
(67, 18, 74, 75, 2, 'com_modules.module.88', 'Latest Actions', '{}'),
(68, 18, 76, 77, 2, 'com_modules.module.89', 'Privacy Dashboard', '{}'),
(70, 18, 88, 89, 2, 'com_modules.module.103', 'Site', '{}'),
@@ -111,9 +111,14 @@ INSERT INTO "#__assets" ("id", "parent_id", "lft", "rgt", "level", "name", "titl
(85, 18, 120, 121, 2, 'com_modules.module.108', 'Privacy Status', '{}'),
(86, 18, 122, 123, 2, 'com_modules.module.96', 'Popular Articles', '{}'),
(87, 18, 124, 125, 2, 'com_modules.module.97', 'Recently Added Articles', '{}'),
-(88, 18, 126, 127, 2, 'com_modules.module.98', 'Logged-in Users', '{}');
+(88, 18, 126, 127, 2, 'com_modules.module.98', 'Logged-in Users', '{}'),
+(89, 18, 128, 137, 2, 'com_modules.workflow.1', 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES', '{}'),
+(90, 89, 129, 130, 3, 'com_modules.state.1', 'COM_WORKFLOW_BASIC_STAGE', '{}'),
+(91, 89, 131, 132, 3, 'com_modules.transition.1', 'Publish', '{}'),
+(92, 89, 133, 134, 3, 'com_modules.transition.2', 'Unpublish', '{}'),
+(93, 89, 135, 136, 3, 'com_modules.transition.3', 'Trash', '{}');
-SELECT setval('#__assets_id_seq', 89, false);
+SELECT setval('#__assets_id_seq', 94, false);
--
-- Table structure for table `#__extensions`
@@ -1099,9 +1104,10 @@ CREATE INDEX "#__workflows_idx_modified_by" ON "#__workflows" ("modified_by");
CREATE INDEX "#__workflows_idx_checked_out" ON "#__workflows" ("checked_out");
INSERT INTO "#__workflows" ("id", "asset_id", "published", "title", "description", "extension", "default", "ordering", "created", "created_by", "modified", "modified_by") VALUES
-(1, 56, 1, 'COM_WORKFLOW_BASIC_WORKFLOW', '', 'com_content.article', 1, 1, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 42);
+(1, 56, 1, 'COM_WORKFLOW_BASIC_WORKFLOW', '', 'com_content.article', 1, 1, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 42),
+(2, 89, 1, 'COM_WORKFLOW_BASIC_WORKFLOW_MODULES', '', 'com_modules.module', 1, 1, CURRENT_TIMESTAMP, 42, CURRENT_TIMESTAMP, 42);
-SELECT setval('#__workflows_id_seq', 2, false);
+SELECT setval('#__workflows_id_seq', 3, false);
--
-- Table structure for table `#__workflow_associations`
@@ -1149,9 +1155,10 @@ CREATE INDEX "#__workflow_stages_idx_checked_out" ON "#__workflow_stages" ("chec
--
INSERT INTO "#__workflow_stages" ("id", "asset_id", "ordering", "workflow_id", "published", "title", "description", "default") VALUES
-(1, 57, 1, 1, 1, 'COM_WORKFLOW_BASIC_STAGE', '', 1);
+(1, 57, 1, 1, 1, 'COM_WORKFLOW_BASIC_STAGE', '', 1),
+(2, 90, 1, 2, 1, 'COM_WORKFLOW_BASIC_STAGE', '', 1);
-SELECT setval('#__workflow_stages_id_seq', 2, false);
+SELECT setval('#__workflow_stages_id_seq', 3, false);
--
-- Table structure for table `#__workflow_transitions`
@@ -1186,6 +1193,12 @@ INSERT INTO "#__workflow_transitions" ("id", "asset_id", "published", "ordering"
(4, 61, 1, 4, 1, 'Archive', '', -1, 1, '{"publishing":"2"}'),
(5, 62, 1, 5, 1, 'Feature', '', -1, 1, '{"featuring":"1"}'),
(6, 63, 1, 6, 1, 'Unfeature', '', -1, 1, '{"featuring":"0"}'),
-(7, 64, 1, 7, 1, 'Publish & Feature', '', -1, 1, '{"publishing":"1","featuring":"1"}');
+(7, 64, 1, 7, 1, 'Publish & Feature', '', -1, 1, '{"publishing":"1","featuring":"1"}'),
+(8, 92, 1, 1, 2, 'Unpublish', '', -1, 2, '{"publishing":"0"}'),
+(9, 91, 1, 2, 2, 'Publish', '', -1, 2, '{"publishing":"1"}'),
+(10, 93, 1, 3, 2, 'Trash', '', -1, 2, '{"publishing":"-2"}');
-SELECT setval('#__workflow_transitions_id_seq', 8, false);
+SELECT setval('#__workflow_transitions_id_seq', 11, false);
+
+INSERT INTO "#__workflow_associations" ("item_id", "stage_id", "extension")
+SELECT "id", 2, 'com_modules.module' FROM "#__modules";
diff --git a/layouts/joomla/button/transition-button.php b/layouts/joomla/button/transition-button.php
index 965973c6e6f..0ee490f82ee 100644
--- a/layouts/joomla/button/transition-button.php
+++ b/layouts/joomla/button/transition-button.php
@@ -27,6 +27,7 @@
$tipTitle = $options['tip_title'];
$tipContent = $options['tip_content'];
$checkboxName = $options['checkbox_name'];
+$task = $options['task'];
?>
|