// Hide checkbox in configuration multishop when employee manage only 1 shop #PSCFV-2649
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15800 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -52,6 +52,7 @@ class HelperOptionsCore extends Helper
|
||||
$languages = Language::getLanguages(false);
|
||||
|
||||
$use_multishop = false;
|
||||
$hide_multishop_checkbox = (Shop::getTotalShops(false, null) < 2) ? true : false;
|
||||
foreach ($option_list as $category => $category_data)
|
||||
{
|
||||
if (!is_array($category_data))
|
||||
@@ -66,7 +67,7 @@ class HelperOptionsCore extends Helper
|
||||
$category_data['hide_multishop_checkbox'] = true;
|
||||
foreach ($category_data['fields'] as $key => $field)
|
||||
{
|
||||
if (empty($field['no_multishop_checkbox']))
|
||||
if (empty($field['no_multishop_checkbox']) && !$hide_multishop_checkbox)
|
||||
$category_data['hide_multishop_checkbox'] = false;
|
||||
|
||||
// Set field value unless explicitly denied
|
||||
|
||||
Reference in New Issue
Block a user