From be3fd5529a1b9586aceec23c4793125ac229631c Mon Sep 17 00:00:00 2001 From: aspangaro Date: Mon, 23 Feb 2015 20:31:44 +0100 Subject: [PATCH] FIXED: Module Expense Report - Correct init --- htdocs/core/modules/modExpenseReport.class.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/htdocs/core/modules/modExpenseReport.class.php b/htdocs/core/modules/modExpenseReport.class.php index c82de294008..5083aae5ad6 100755 --- a/htdocs/core/modules/modExpenseReport.class.php +++ b/htdocs/core/modules/modExpenseReport.class.php @@ -336,13 +336,12 @@ class modExpenseReport extends DolibarrModules { global $conf; + // Remove permissions and default values $this->remove($options); - $result=$this->_load_tables('/deplacement/sql/'); - $sql = array( - "DELETE FROM ".MAIN_DB_PREFIX."document_model WHERE nom = 'teclib' AND entity = ".$conf->entity, - "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity) VALUES('teclib','deplacement',".$conf->entity.")" + "DELETE FROM ".MAIN_DB_PREFIX."document_model WHERE nom = 'standard' AND entity = ".$conf->entity, + "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity) VALUES('standard','deplacement',".$conf->entity.")" ); return $this->_init($sql,$options); @@ -362,6 +361,4 @@ class modExpenseReport extends DolibarrModules return $this->_remove($sql,$options); } - -} - +} \ No newline at end of file