//fixed small bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10219 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -794,11 +794,11 @@ class AdminControllerCore extends Controller
|
|||||||
if (!Tools::getValue($field) && isset($values['default']))
|
if (!Tools::getValue($field) && isset($values['default']))
|
||||||
$_POST[$field] = $values['default'];
|
$_POST[$field] = $values['default'];
|
||||||
|
|
||||||
if (1 || !count($this->_errors))
|
if (!count($this->_errors))
|
||||||
{
|
{
|
||||||
foreach ($fields as $key => $options)
|
foreach ($fields as $key => $options)
|
||||||
{
|
{
|
||||||
if (isset($options['visibility']) && $options['visibility'] > Context::getContext()->shop->getContextType())
|
if (Shop::isFeatureActive() && isset($options['visibility']) && ($options['visibility'] > Context::getContext()->shop->getContextType()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (Shop::isFeatureActive() && isset($_POST['configUseDefault'][$key]))
|
if (Shop::isFeatureActive() && isset($_POST['configUseDefault'][$key]))
|
||||||
@@ -840,6 +840,7 @@ class AdminControllerCore extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//d('after ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (count($this->_errors) <= 0)
|
if (count($this->_errors) <= 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user