[-] INSTALER: Fix bug #PSCFV-9762 marketing tab disapear after upgrade

This commit is contained in:
gRoussac
2013-07-15 12:29:51 +02:00
parent ee1187d821
commit e30e15d76d
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -24,8 +24,13 @@
* International Registered Trademark & Property of PrestaShop SA
*/
function add_new_tab($className, $name, $id_parent, $returnId = false)
function add_new_tab($className, $name, $id_parent, $returnId = false, $parentTab)
{
if (isset($parentTab) && !empty($parentTab) && (is_null($id_parent) || empty($id_parent)))
$id_parent = (int)Db::getInstance()->getValue('SELECT `id_tab` FROM `'._DB_PREFIX_.'tab` WHERE `class_name` = \''.pSQL($parentTab).'\'');
if (!$id_parent)
return false;
$array = array();
foreach (explode('|', $name) AS $item)
{
+1 -1
View File
@@ -31,7 +31,7 @@ CREATE TABLE `PREFIX_tab_module_preference` (
UNIQUE KEY `employee_module` (`id_employee`, `id_tab`, `module`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
/* PHP:add_new_tab(AdminMarketing, es:Marketing|it:Marketing|en:Marketing|de:Marketing|fr:Marketing, 1); */;
/* PHP:add_new_tab(AdminMarketing, es:Marketing|it:Marketing|en:Marketing|de:Marketing|fr:Marketing, 0, false, AdminPriceRule); */;
/* PHP:p1540_add_missing_columns(); */;