Tables of module ticket are create only when module is enabled.
This commit is contained in:
parent
68beafe599
commit
c20d824999
@ -320,6 +320,11 @@ class modTicket extends DolibarrModules
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
$result = $this->_load_tables('/install/mysql/tables/', 'ticket');
|
||||
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')
|
||||
}
|
||||
|
||||
// Permissions
|
||||
$this->remove($options);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user