From 75fce7985239b8a824afde1ac440d45562b2baa3 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 13 Dec 2010 15:07:02 +0000 Subject: [PATCH] Fix: problem with class path --- htdocs/core/class/commonobject.class.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 2e6e8e21b5b..42a35bcb73a 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1354,16 +1354,18 @@ class CommonObject function showLinkedObjectBlock($objecttype,$objectid,$somethingshown=0) { global $langs,$bc; + + //print 'objecttype='.$objecttype.'
'; $num = sizeof($objectid); if ($num) { $classpath = $objecttype.'/class'; $tplpath = $objecttype; - if ($objecttype == 'facture') $tplpath = 'compta/'.$objecttype; $classpath = $tplpath.'/class'; // To work with non standard path - if ($objecttype == 'propal') $tplpath = 'comm/'.$objecttype; $classpath = $tplpath.'/class'; // To work with non standard path - if ($objecttype == 'invoice_supplier') $tplpath = 'fourn/facture'; $classpath = 'fourn/class'; // To work with non standard path - if ($objecttype == 'order_supplier') $tplpath = 'fourn/commande'; $classpath = 'fourn/class'; // To work with non standard path + if ($objecttype == 'facture') { $tplpath = 'compta/'.$objecttype; $classpath = $tplpath.'/class'; } // To work with non standard path + if ($objecttype == 'propal') { $tplpath = 'comm/'.$objecttype; $classpath = $tplpath.'/class'; } // To work with non standard path + if ($objecttype == 'invoice_supplier') { $tplpath = 'fourn/facture'; $classpath = 'fourn/class'; } // To work with non standard path + if ($objecttype == 'order_supplier') { $tplpath = 'fourn/commande'; $classpath = 'fourn/class'; } // To work with non standard path $classfile = strtolower($objecttype); $classname = ucfirst($objecttype); if ($objecttype == 'invoice_supplier') { $classfile='fournisseur.facture'; $classname='FactureFournisseur'; }