NEW Add more tables activated by module activation only

This commit is contained in:
Laurent Destailleur
2023-08-24 20:12:02 +02:00
parent 73c199adbf
commit 23f4fb9cdd
20 changed files with 38 additions and 31 deletions

View File

@@ -245,6 +245,11 @@ class modExpenseReport extends DolibarrModules
{
global $conf;
$result = $this->_load_tables('/install/mysql/', 'expensereport');
if ($result < 0) {
return -1; // Do not activate module if error 'not allowed' returned when loading module SQL queries (the _load_table run sql with run_sql with the error allowed parameter set to 'default')
}
// Remove permissions and default values
$this->remove($options);