Skip to content
Snippets Groups Projects
Commit 03f9f0ba authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Pb of records not correctly cleaned when module marge is

uninstalled (conflict between 'margin' and 'margins').
parent f34a9983
Branches
Tags
No related merge requests found
......@@ -9,6 +9,8 @@ Fix: [ bug #1352 ] Removing a shipping does not remove the delivery.
Fix: Option MAIN_INVERT_SENDER_RECIPIENT broken with typhon template.
Fix: Can disable features with PHPEXCEL (no DLSF compatible).
Fix: Can disable features with CKEDITOR.
Fix: Pb of records not correctly cleaned when module marge is
uninstalled (conflict between 'margin' and 'margins').
***** ChangeLog for 3.5.2 compared to 3.5.1 *****
Fix: Can't add user for a task.
......
......@@ -42,7 +42,7 @@ class modMargin extends DolibarrModules
// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
$this->numero = 59000;
// Key text used to identify module (for permissions, menus, etc...)
$this->rights_class = 'margin';
$this->rights_class = 'margins';
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
// It is used to group modules in module setup page
......@@ -114,7 +114,6 @@ class modMargin extends DolibarrModules
// Permissions
$this->rights = array();
$this->rights_class = 'margins';
$r=0;
$r++;
......
......@@ -3,7 +3,6 @@
-- when current version is 2.6.0 or higher.
--
-- Requests to clean corrupted database
-- delete foreign key that should never exists
......@@ -101,6 +100,10 @@ UPDATE llx_product p SET p.stock= (SELECT SUM(ps.reel) FROM llx_product_stock ps
-- VMYSQL4.1 DELETE T1 FROM llx_boxes_def as T1, llx_boxes_def as T2 where T1.entity = T2.entity AND T1.file = T2.file AND T1.note = T2.note and T1.rowid > T2.rowid;
-- VPGSQL8.2 DELETE FROM llx_boxes_def as T1 WHERE rowid NOT IN (SELECT min(rowid) FROM llx_boxes_def GROUP BY file, entity, note);
-- We delete old entries into menu for module margin (pb with margin and margins)
-- VMYSQL DELETE from llx_menu where module = 'margin' and url = '/margin/index.php' and not exists (select * from llx_const where name = 'MAIN_MODULE_MARGIN' or name = 'MAIN_MODULE_MARGINS');
-- VMYSQL DELETE from llx_menu where module = 'margins' and url = '/margin/index.php' and not exists (select * from llx_const where name = 'MAIN_MODULE_MARGIN' or name = 'MAIN_MODULE_MARGINS');
-- Requests to clean old tables or fields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment