// select associated categories on a shop creation (with the root category shown when you are not in a shop context)

This commit is contained in:
vChabot
2012-02-20 14:36:57 +00:00
parent d4d75ecaae
commit 32f1138517
+1 -1
View File
@@ -271,7 +271,7 @@ class HelperCore
}
$root_input = ' ';
if ($root_category->id != $top_category->id)
if ($root_category->id != $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));" />