diff --git a/admin-dev/themes/default/template/shop/form.tpl b/admin-dev/themes/default/template/shop/form.tpl index d6ab28556..b8392693f 100644 --- a/admin-dev/themes/default/template/shop/form.tpl +++ b/admin-dev/themes/default/template/shop/form.tpl @@ -41,12 +41,13 @@
{if $input.type == 'theme'} {foreach $input.values as $theme} -
- {$theme.name}
- {$theme.directory}
- +
+ {$theme->name}
+ {$theme->directory}
+ id == $fields_value.id_theme_checked}checked="checked"{/if} />
{/foreach} +
 
{/if} {if $input.type == 'textGroupShop'} {$input.value} diff --git a/controllers/admin/AdminShopController.php b/controllers/admin/AdminShopController.php index 2f23f5520..c9c37f55f 100755 --- a/controllers/admin/AdminShopController.php +++ b/controllers/admin/AdminShopController.php @@ -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(