2
0
forked from Wavyzz/dolibarr

NEW Some core tables are created only at module activation

This commit is contained in:
Laurent Destailleur
2022-02-06 13:31:44 +01:00
parent 2991f992dc
commit 6562b24e41
10 changed files with 69 additions and 0 deletions

View File

@@ -442,6 +442,11 @@ class modKnowledgeManagement extends DolibarrModules
{
global $conf, $langs;
$result = $this->_load_tables('/install/mysql/tables/', 'knowledgemanagement');
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')
}
// Create extrafields during init
//include_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
//$extrafields = new ExtraFields($this->db);