[-] BO : fix bug in themes for AdminShopController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11936 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -313,8 +313,6 @@ class AdminShopControllerCore extends AdminController
|
||||
);
|
||||
|
||||
$themes = Theme::getThemes();
|
||||
foreach ($themes as $i => $theme)
|
||||
$themes[$i]['checked'] = ((!$obj->id && $i == 0) || $obj->id_theme == $theme['id_theme']) ? true : false;
|
||||
|
||||
$this->fields_form['input'][] = array(
|
||||
'type' => 'theme',
|
||||
@@ -391,7 +389,8 @@ class AdminShopControllerCore extends AdminController
|
||||
|
||||
$this->fields_value = array(
|
||||
'id_group_shop' => $obj->id_group_shop,
|
||||
'active' => true
|
||||
'active' => true,
|
||||
'id_theme_checked' => isset($obj->id_theme) ? $obj->id_theme : 0
|
||||
);
|
||||
|
||||
$this->tpl_form_vars = array(
|
||||
|
||||
Reference in New Issue
Block a user