Fix: Removed warning. Fix compatibility.
This commit is contained in:
parent
643e077c68
commit
62f14e3dd5
@ -2282,6 +2282,9 @@ abstract class CommonObject
|
|||||||
if ($objecttype == 'member') {
|
if ($objecttype == 'member') {
|
||||||
$classpath = 'adherents/class'; $module='adherent'; $subelement='adherent';
|
$classpath = 'adherents/class'; $module='adherent'; $subelement='adherent';
|
||||||
}
|
}
|
||||||
|
if ($objecttype == 'cabinetmed_cons') {
|
||||||
|
$classpath = 'cabinetmed/class'; $module='cabinetmed'; $subelement='cabinetmedcons';
|
||||||
|
}
|
||||||
|
|
||||||
//print "objecttype=".$objecttype." module=".$module." subelement=".$subelement;
|
//print "objecttype=".$objecttype." module=".$module." subelement=".$subelement;
|
||||||
|
|
||||||
@ -2293,15 +2296,17 @@ abstract class CommonObject
|
|||||||
$classfile = 'fournisseur.commande'; $classname='CommandeFournisseur';
|
$classfile = 'fournisseur.commande'; $classname='CommandeFournisseur';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->$module->enabled)
|
if (! empty($conf->$module->enabled))
|
||||||
|
{
|
||||||
|
$res=dol_include_once('/'.$classpath.'/'.$classfile.'.class.php');
|
||||||
|
if ($res)
|
||||||
{
|
{
|
||||||
dol_include_once('/'.$classpath.'/'.$classfile.'.class.php');
|
|
||||||
|
|
||||||
$object = new $classname($this->db);
|
$object = new $classname($this->db);
|
||||||
$ret=$object->fetch($objectid);
|
$ret=$object->fetch($objectid);
|
||||||
if ($ret > 0) return $object->getNomUrl($withpicto,$option);
|
if ($ret > 0) return $object->getNomUrl($withpicto,$option);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* This is to show linked object block */
|
/* This is to show linked object block */
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user