forked from Wavyzz/dolibarr
NEW Some core tables are created only at module activation
This commit is contained in:
@@ -434,6 +434,11 @@ class modStock extends DolibarrModules
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
$result = $this->_load_tables('/install/mysql/tables/', 'stock');
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user