// Fix bug controller AdminCategoriesController (PSFV-94)

This commit is contained in:
lLefevre
2011-11-03 10:24:31 +00:00
parent cc815821ce
commit b39c8e73ab
2 changed files with 17 additions and 16 deletions
+15 -14
View File
@@ -23,18 +23,19 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="toolbarBox">
<ul class="cc_button">
{foreach from=$toolbar_btn item=btn key=k}
<li>
<a class="toolbar_btn" href="{$btn.href}" title="{$btn.desc}">
<span class="process-icon-{$btn.imgclass|default:$k} {$btn.class|default:'' }" ></span>{$btn.desc}
</a>
</li>
{/foreach}
</ul>
<div class="pageTitle">{* todo : what to display as title for each items (table_lang.name ? *}
<h3><span id="current_obj" style="font-weight: normal;">{$current_obj_name|default:'&nbsp;'}</span></h3>
{if count($toolbar_btn) > 0}
<div class="toolbarBox">
<ul class="cc_button">
{foreach from=$toolbar_btn item=btn key=k}
<li>
<a class="toolbar_btn" href="{$btn.href}" title="{$btn.desc}">
<span class="process-icon-{$btn.imgclass|default:$k} {$btn.class|default:'' }" ></span>{$btn.desc}
</a>
</li>
{/foreach}
</ul>
<div class="pageTitle">{* todo : what to display as title for each items (table_lang.name ? *}
<h3><span id="current_obj" style="font-weight: normal;">{$current_obj_name|default:'&nbsp;'}</span></h3>
</div>
</div>
</div>
{/if}
@@ -98,7 +98,7 @@ class AdminCategoriesControllerCore extends AdminController
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->_filter .= 'AND `id_parent` = '.(int)$this->_category->id;
$this->_filter .= 'AND `id_parent` = '.(int)$this->_category->id.' ';
$this->_select = 'position ';
$categories_tree = $this->_category->getParentsCategories($this->context->language->id);
@@ -124,7 +124,7 @@ class AdminCategoriesControllerCore extends AdminController
public function initView()
{
$this->initToolbar();
$this->content .= $this->initList();
return $this->initList();
}
public function initToolbar()