[-] 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:
Mats Rynge
2012-12-30 00:24:03 -08:00
parent 5e367744b6
commit 230cd38839
2 changed files with 3 additions and 2 deletions
@@ -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>&nbsp;>&nbsp;
@@ -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))
{