[-] BO : Fixed a problem with the breadcrumbs in the admin category editing controller. The previous code used asort() which put the category breadcrumbs in the wrong order.
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@
|
||||
{else}
|
||||
{assign var=params_url value="&id_category={$category.id_category}&viewcategory"}
|
||||
{/if}
|
||||
{if $key == 0}
|
||||
{if $category.id_category == $categories_tree_current_id}
|
||||
{$category.name}
|
||||
{else}
|
||||
<a href="{$currentIndex}{$params_url}&token={$token}">{$category.name}</a> >
|
||||
|
||||
@@ -181,8 +181,9 @@ class AdminCategoriesControllerCore extends AdminController
|
||||
&& (Shop::getContext() == Shop::CONTEXT_SHOP && !$is_multishop && $count_categories_without_parent > 1))
|
||||
$categories_tree = array(array('name' => $this->_category->name[$this->context->language->id]));
|
||||
|
||||
asort($categories_tree);
|
||||
$categories_tree = array_reverse($categories_tree);
|
||||
$this->tpl_list_vars['categories_tree'] = $categories_tree;
|
||||
$this->tpl_list_vars['categories_tree_current_id'] = $this->_category->id;
|
||||
|
||||
if (Tools::isSubmit('submitBulkdelete'.$this->table) || Tools::isSubmit('delete'.$this->table))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user