Skip to content

Commit

Permalink
Fix broken column on/off switch
Browse files Browse the repository at this point in the history
  • Loading branch information
NemoPS committed Aug 4, 2017
1 parent dc0a699 commit 4ddeec2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/admin/AdminThemesController.php
Expand Up @@ -508,6 +508,7 @@ public function renderForm()
$helperList->tpl_vars['show_filters'] = false;
$helperList->currentIndex = $this->context->link->getAdminLink('AdminThemes', false);
$helperList->token = Tools::getAdminTokenLite('AdminThemes');

$list = $helperList->generateList($formatedMetas, $fieldsList);
}

Expand Down Expand Up @@ -3255,10 +3256,11 @@ public function processDefaultRightColumn()
*/
public function ajaxProcessLeftMeta()
{

$result = Db::getInstance()->update(
'theme_meta',
[
'left_column' => 'NOT `left_column`',
'left_column' => ['type' => 'sql', 'value' => 'IF(left_column, 0, 1)'],
],
'`id_theme_meta` = '.(int) Tools::getValue('id_theme_meta'),
1
Expand Down

0 comments on commit 4ddeec2

Please sign in to comment.