diff --git a/admin-dev/themes/template/toolbar.tpl b/admin-dev/themes/template/toolbar.tpl index 29c1583e3..c039e2427 100644 --- a/admin-dev/themes/template/toolbar.tpl +++ b/admin-dev/themes/template/toolbar.tpl @@ -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 *} - -
- -
{* todo : what to display as title for each items (table_lang.name ? *} -

{$current_obj_name|default:' '}

+{if count($toolbar_btn) > 0} +
+ +
{* todo : what to display as title for each items (table_lang.name ? *} +

{$current_obj_name|default:' '}

+
-
\ No newline at end of file +{/if} \ No newline at end of file diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 2db460596..2541af438 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -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()