forked from Wavyzz/dolibarr
Debug v18
This commit is contained in:
@@ -11338,6 +11338,12 @@ function getElementProperties($element_type)
|
||||
$classpath = 'adherents/class';
|
||||
$module = 'adherent';
|
||||
$subelement = 'adherent';
|
||||
} elseif ($element_type == 'mo') {
|
||||
$classpath = 'mrp/class';
|
||||
$classfile = 'mo';
|
||||
$classname = 'Mo';
|
||||
$module = 'mrp';
|
||||
$subelement = '';
|
||||
} elseif ($element_type == 'cabinetmed_cons') {
|
||||
$classpath = 'cabinetmed/class';
|
||||
$module = 'cabinetmed';
|
||||
@@ -11430,6 +11436,7 @@ function fetchObjectByElement($element_id, $element_type, $element_ref = '')
|
||||
$ret = 0;
|
||||
|
||||
$element_prop = getElementProperties($element_type);
|
||||
//var_dump($element_prop);
|
||||
|
||||
if (is_array($element_prop) && isModEnabled($element_prop['module'])) {
|
||||
dol_include_once('/'.$element_prop['classpath'].'/'.$element_prop['classfile'].'.class.php');
|
||||
|
||||
Reference in New Issue
Block a user