2
0
forked from Wavyzz/dolibarr

Debug v18

This commit is contained in:
Laurent Destailleur
2023-04-10 01:39:47 +02:00
parent 91c8ca1e38
commit aea1f60c67
10 changed files with 16 additions and 10 deletions

View File

@@ -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');