From 41e19149c7569944f2cdc9dff04a40bb4d874c06 Mon Sep 17 00:00:00 2001 From: vChabot Date: Mon, 5 Mar 2012 14:25:08 +0000 Subject: [PATCH] [-] MO : BugFix : max level-depth is now set to 4 (instead of 3 before, as the new root category has come) --- install-dev/data/theme.sql | 2 +- install-dev/data/xml/configuration.xml | 4 ++-- modules/blockcategories/blockcategories.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install-dev/data/theme.sql b/install-dev/data/theme.sql index a511fade7..990d93ae4 100644 --- a/install-dev/data/theme.sql +++ b/install-dev/data/theme.sql @@ -37,7 +37,7 @@ UPDATE `PREFIX_configuration` SET value = '7' WHERE name = 'PS_PNG_QUALITY'; UPDATE `PREFIX_configuration` SET value = '90' WHERE name = 'PS_JPEG_QUALITY'; UPDATE `PREFIX_configuration` SET value = '2' WHERE name = 'PRODUCTS_VIEWED_NBR'; UPDATE `PREFIX_configuration` SET value = '1' WHERE name = 'BLOCK_CATEG_DHTML'; -UPDATE `PREFIX_configuration` SET value = '3' WHERE name = 'BLOCK_CATEG_MAX_DEPTH'; +UPDATE `PREFIX_configuration` SET value = '4' WHERE name = 'BLOCK_CATEG_MAX_DEPTH'; UPDATE `PREFIX_configuration` SET value = '1' WHERE name = 'MANUFACTURER_DISPLAY_FORM'; UPDATE `PREFIX_configuration` SET value = '1' WHERE name = 'MANUFACTURER_DISPLAY_TEXT'; UPDATE `PREFIX_configuration` SET value = '5' WHERE name = 'MANUFACTURER_DISPLAY_TEXT_NB'; diff --git a/install-dev/data/xml/configuration.xml b/install-dev/data/xml/configuration.xml index a317e0e0d..8a5fda788 100644 --- a/install-dev/data/xml/configuration.xml +++ b/install-dev/data/xml/configuration.xml @@ -546,7 +546,7 @@ 1 - 3 + 4 1 @@ -726,7 +726,7 @@ 1 - 3 + 4 1 diff --git a/modules/blockcategories/blockcategories.php b/modules/blockcategories/blockcategories.php index 8577ae25f..44fe12de9 100644 --- a/modules/blockcategories/blockcategories.php +++ b/modules/blockcategories/blockcategories.php @@ -53,7 +53,7 @@ class BlockCategories extends Module !$this->registerHook('categoryUpdate') || !$this->registerHook('categoryDeletion') || !$this->registerHook('afterSaveAdminMeta') || - !Configuration::updateValue('BLOCK_CATEG_MAX_DEPTH', 3) || + !Configuration::updateValue('BLOCK_CATEG_MAX_DEPTH', 4) || !Configuration::updateValue('BLOCK_CATEG_DHTML', 1)) return false; return true;