FIX publish / unpublish with alias state

This commit is contained in:
Thomas Kuschel 2023-10-16 18:00:27 +02:00
parent 303f1c8a00
commit 577a9f680a
2 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,10 @@ COM_DEPOT_LEGEND_DETAILS="Component Details"
COM_DEPOT_LEGEND_STATISTICS="Component Statistics" COM_DEPOT_LEGEND_STATISTICS="Component Statistics"
COM_DEPOT_N_ITEMS_DELETED_1="One component deleted" COM_DEPOT_N_ITEMS_DELETED_1="One component deleted"
COM_DEPOT_N_ITEMS_DELETED_MORE="%d components deleted" COM_DEPOT_N_ITEMS_DELETED_MORE="%d components deleted"
COM_DEPOT_N_ITEMS_PUBLISHED_1="One component published"
COM_DEPOT_N_ITEMS_PUBLISHED_MORE="%d components published"
COM_DEPOT_N_ITEMS_UNPUBLISHED_1="One component unpublished"
COM_DEPOT_N_ITEMS_UNPUBLISHED_MORE="%d components unpublished"
COM_DEPOT_SELECT_YOUR_OPTION="Select your option" COM_DEPOT_SELECT_YOUR_OPTION="Select your option"
COM_DEPOT_TAB_NEW_PART="New Component" COM_DEPOT_TAB_NEW_PART="New Component"
COM_DEPOT_TAB_EDIT_PART="Component Details" COM_DEPOT_TAB_EDIT_PART="Component Details"

View File

@ -21,6 +21,9 @@ class PartTable extends Table
function __construct(DatabaseDriver $db) function __construct(DatabaseDriver $db)
{ {
parent::__construct('#__depot', 'id', $db); parent::__construct('#__depot', 'id', $db);
// add an alias for published:
$this->setColumnAlias('published', 'state');
} }
public function store($updateNulls = true) public function store($updateNulls = true)