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

Merge pull request #2391 from aspangaro/develop-patch10

FIXED: Module Expense Report - Correct init
parents fd9fc191 be3fd552
No related branches found
No related tags found
No related merge requests found
...@@ -336,13 +336,12 @@ class modExpenseReport extends DolibarrModules ...@@ -336,13 +336,12 @@ class modExpenseReport extends DolibarrModules
{ {
global $conf; global $conf;
// Remove permissions and default values
$this->remove($options); $this->remove($options);
$result=$this->_load_tables('/deplacement/sql/');
$sql = array( $sql = array(
"DELETE FROM ".MAIN_DB_PREFIX."document_model WHERE nom = 'teclib' AND entity = ".$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('teclib','deplacement',".$conf->entity.")" "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity) VALUES('standard','deplacement',".$conf->entity.")"
); );
return $this->_init($sql,$options); return $this->_init($sql,$options);
...@@ -362,6 +361,4 @@ class modExpenseReport extends DolibarrModules ...@@ -362,6 +361,4 @@ class modExpenseReport extends DolibarrModules
return $this->_remove($sql,$options); return $this->_remove($sql,$options);
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment