Skip to content

Commit

Permalink
[4.0] Error when changing status of tagged content items (joomla#30466)
Browse files Browse the repository at this point in the history
* Correct column name

* Fix changing UCM state
  • Loading branch information
SharkyKZ authored and drmenzelit committed Aug 31, 2020
1 parent b4599d0 commit aa70b24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion libraries/src/Table/CoreContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
6 changes: 0 additions & 6 deletions plugins/content/joomla/joomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit aa70b24

Please sign in to comment.