From aa70b24d06cce66242345b45d16f5df0f40dfe57 Mon Sep 17 00:00:00 2001 From: SharkyKZ Date: Fri, 28 Aug 2020 15:01:29 +0300 Subject: [PATCH] [4.0] Error when changing status of tagged content items (#30466) * Correct column name * Fix changing UCM state --- libraries/src/Table/CoreContent.php | 2 +- plugins/content/joomla/joomla.php | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/libraries/src/Table/CoreContent.php b/libraries/src/Table/CoreContent.php index dafc60b2e91b9..21915d6f40fc0 100644 --- a/libraries/src/Table/CoreContent.php +++ b/libraries/src/Table/CoreContent.php @@ -53,7 +53,7 @@ public function __construct(DatabaseDriver $db) parent::__construct('#__ucm_content', 'core_content_id', $db); $this->setColumnAlias('published', 'core_state'); - $this->setColumnAlias('checked_out', 'core_checked_out'); + $this->setColumnAlias('checked_out', 'core_checked_out_user_id'); $this->setColumnAlias('checked_out_time', 'core_checked_out_time'); } diff --git a/plugins/content/joomla/joomla.php b/plugins/content/joomla/joomla.php index 5d9ce6a332370..0550fdbe3d66d 100644 --- a/plugins/content/joomla/joomla.php +++ b/plugins/content/joomla/joomla.php @@ -609,12 +609,6 @@ public function onContentChangeState($context, $pks, $value) return true; } - // Check if this function is enabled. - if ($context != 'com_content.article') - { - return true; - } - $db = $this->db; $query = $db->getQuery(true) ->select($db->quoteName('core_content_id'))