Add linked object block for contract module

This commit is contained in:
Regis Houssin
2010-04-29 06:20:03 +00:00
parent 6c560b61b8
commit cd2aa64cae
4 changed files with 84 additions and 3 deletions

View File

@@ -1029,8 +1029,8 @@ class CommonObject
// TODO uniformiser emplacement classe
$classpath = $object.'/class';
$tplpath = $object;
if ($object == 'facture') $tplpath = $classpath = 'compta/'.$object;
if ($object == 'propal') $tplpath = $classpath = 'comm/'.$object;
if ($object == 'facture') $tplpath = 'compta/'.$object; $classpath = $tplpath.'/class';
if ($object == 'propal') $tplpath = 'comm/'.$object; $classpath = $tplpath.'/class';
$classname = ucfirst($object);
if(!class_exists($classname)) require(DOL_DOCUMENT_ROOT."/".$classpath."/".$object.".class.php");