[-] BO : Bugfix : #PSFV-619 : removing the ability to add a new root category if you are not in multishop

// category tree improved
This commit is contained in:
vChabot
2012-03-05 16:52:58 +00:00
parent d25cfdcf7d
commit 4b2a5b2377
3 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ class HelperCore
}
$root_input = ' ';
if ($root_category->id != $top_category->id || (Tools::isSubmit('ajax') && Tools::getValue('action') == 'getCategoriesFromRootCategory'))
if ($root['id_category'] != $top_category->id || (Tools::isSubmit('ajax') && Tools::getValue('action') == 'getCategoriesFromRootCategory'))
$root_input = '<input type="'.(!$use_radio ? 'checkbox' : 'radio').'" name="'
.$input_name.'" value="'.$root['id_category'].'" '
.($home_is_selected ? 'checked' : '').' onclick="clickOnCategoryBox($(this));" />