// fix check default theme in AdminShopController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11952 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-12-30 15:54:01 +00:00
parent 00ad6f28db
commit 45627096c2
2 changed files with 12 additions and 3 deletions
+8 -1
View File
@@ -313,6 +313,13 @@ class AdminShopControllerCore extends AdminController
);
$themes = Theme::getThemes();
if (!isset($obj->id_theme))
foreach ($themes as $theme)
if (isset($theme->id))
{
$id_theme = $theme->id;
break;
}
$this->fields_form['input'][] = array(
'type' => 'theme',
@@ -390,7 +397,7 @@ class AdminShopControllerCore extends AdminController
$this->fields_value = array(
'id_group_shop' => $obj->id_group_shop,
'active' => true,
'id_theme_checked' => isset($obj->id_theme) ? $obj->id_theme : 0
'id_theme_checked' => isset($obj->id_theme) ? $obj->id_theme : $id_theme
);
$this->tpl_form_vars = array(