- {$theme.name}
-

-
+
+ {$theme->name}
+

+
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(