From 703d7909106cc2f935cf6f020a03bc2ef240ea4c Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 2 Dec 2013 17:39:46 +0100 Subject: [PATCH 1/2] // Changed hook in update --- install-dev/upgrade/sql/1.6.0.2.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-dev/upgrade/sql/1.6.0.2.sql b/install-dev/upgrade/sql/1.6.0.2.sql index 55c3dfabe..5eba8ecf0 100644 --- a/install-dev/upgrade/sql/1.6.0.2.sql +++ b/install-dev/upgrade/sql/1.6.0.2.sql @@ -4,5 +4,5 @@ INSERT INTO `PREFIX_hook_module` (`id_module`, `id_shop`, `id_hook`, `position`) SELECT m.id_module, s.id_shop, h.id_hook, 0 FROM `PREFIX_module` m, `PREFIX_shop` s, `PREFIX_hook` h WHERE m.name IN ('dashgoals', 'dashactivity', 'dashtrends', 'dashproducts') - AND h.name IN ('displayBackOfficeHeader') + AND h.name IN ('actionAdminControllerSetMedia') ); From 102b99eb1c5e2e7b984dd93621bc690c31a4a5de Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 2 Dec 2013 18:15:37 +0100 Subject: [PATCH 2/2] // small fix --- modules/blockcategories/blockcategories.tpl | 5 ++--- modules/blockcategories/blockcategories_footer.tpl | 4 ++-- .../modules/blockcategories/blockcategories.tpl | 5 ++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/blockcategories/blockcategories.tpl b/modules/blockcategories/blockcategories.tpl index 86acc7807..49013faab 100644 --- a/modules/blockcategories/blockcategories.tpl +++ b/modules/blockcategories/blockcategories.tpl @@ -22,9 +22,8 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} - - {if $blockCategTree && $blockCategTree.children|@count} +

{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Categories' mod='blockcategories'}{/if}

@@ -46,5 +45,5 @@
-{/if} +{/if} diff --git a/modules/blockcategories/blockcategories_footer.tpl b/modules/blockcategories/blockcategories_footer.tpl index 12d947b1c..66620354f 100644 --- a/modules/blockcategories/blockcategories_footer.tpl +++ b/modules/blockcategories/blockcategories_footer.tpl @@ -23,8 +23,8 @@ * International Registered Trademark & Property of PrestaShop SA *} - + diff --git a/themes/default-bootstrap/modules/blockcategories/blockcategories.tpl b/themes/default-bootstrap/modules/blockcategories/blockcategories.tpl index d0b731f0a..7f1a86b9d 100644 --- a/themes/default-bootstrap/modules/blockcategories/blockcategories.tpl +++ b/themes/default-bootstrap/modules/blockcategories/blockcategories.tpl @@ -22,9 +22,8 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} - - {if $blockCategTree && $blockCategTree.children|@count} +

{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Categories' mod='blockcategories'}{/if}

@@ -46,5 +45,5 @@
-{/if} +{/if}