// Groups with only 1 shop are not disabled anymore in multishop toolbar
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15544 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
962a641bd9
commit
5b1964b812
1 file changed
+1
-1
@@ -369,7 +369,7 @@ class HelperCore
|
|||||||
$html .= '<option value="" class="first">'.Translate::getAdminTranslation('All shops').'</option>';
|
$html .= '<option value="" class="first">'.Translate::getAdminTranslation('All shops').'</option>';
|
||||||
foreach ($tree as $gID => $group_data)
|
foreach ($tree as $gID => $group_data)
|
||||||
{
|
{
|
||||||
if ((!isset($context->controller->multishop_context) || $context->controller->multishop_context & Shop::CONTEXT_GROUP) && count($group_data['shops']) > 1)
|
if ((!isset($context->controller->multishop_context) || $context->controller->multishop_context & Shop::CONTEXT_GROUP))
|
||||||
$html .= '<option class="group" value="g-'.$gID.'" '.(($value == 'g-'.$gID) ? 'selected="selected"' : '').'>'.Translate::getAdminTranslation('Group:').' '.htmlspecialchars($group_data['name']).'</option>';
|
$html .= '<option class="group" value="g-'.$gID.'" '.(($value == 'g-'.$gID) ? 'selected="selected"' : '').'>'.Translate::getAdminTranslation('Group:').' '.htmlspecialchars($group_data['name']).'</option>';
|
||||||
else
|
else
|
||||||
$html .= '<optgroup class="group" label="'.Translate::getAdminTranslation('Group:').' '.htmlspecialchars($group_data['name']).'">';
|
$html .= '<optgroup class="group" label="'.Translate::getAdminTranslation('Group:').' '.htmlspecialchars($group_data['name']).'">';
|
||||||
|
|||||||
Reference in new issue
Block a user