// fix small bugs

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10975 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-12-06 12:41:56 +00:00
parent 187aafaf51
commit efe13abfd0
4 changed files with 67 additions and 57 deletions
+3 -1
View File
@@ -80,6 +80,7 @@ class AdminControllerCore extends Controller
public $tpl_view_vars = array();
public $base_tpl_view = null;
public $base_tpl_form = null;
/** @var bool if you want more fieldsets in the form */
public $multiple_fieldsets = false;
@@ -1430,6 +1431,7 @@ class AdminControllerCore extends Controller
$this->setHelperDisplay($helper);
$helper->fields_value = $this->getFieldsValue($this->object);
$helper->tpl_vars = $this->tpl_form_vars;
!is_null($this->base_tpl_form) ? $helper->base_tpl = $this->base_tpl_form : '';
if ($this->tabAccess['view'])
{
if (Tools::getValue('back'))
@@ -2014,7 +2016,7 @@ class AdminControllerCore extends Controller
if (isset($fieldset['form']['input']))
foreach ($fieldset['form']['input'] as $input)
if (empty($this->fields_value[$input['name']]))
if ($input['type'] == 'group_shop' || $input['type'] == 'shop')
if (isset($input['type']) && ($input['type'] == 'group_shop' || $input['type'] == 'shop'))
{
if ($obj->id)
{