Ok, fix für das Problem bei mir:
PHP-Code:
Alter Code:
if($this->Input->post('action')=='toggleVisibility')
{
// Update database
$this->Database->prepare('UPDATE '.$objCatalog->tableName.' SET ' . $this->publishField . '=? WHERE id=?')
->execute($this->Input->post('state')=='1'?'1':'', $this->Input->post('id'));
exit;
PHP-Code:
Neuer Code:
if(($this->Input->get('do')=='catalog') && ($this->Input->get('table')=='tl_catalog_items') && ($this->Input->get('state')!=''))
{
// Update database
$this->Database->prepare('UPDATE '.$objCatalog->tableName.' SET ' . $this->publishField . '=? WHERE id=?')
->execute($this->Input->get('state')=='1'?'1':'', $this->Input->get('tid'));
exit;
Lesezeichen