Fix: missing linked objects

This commit is contained in:
Regis Houssin 2012-02-15 19:31:27 +01:00
parent 9b37523062
commit 9ed7b9b370

View File

@ -1641,7 +1641,7 @@ class CommonObject
{
$tplpath = $element = $subelement = $objecttype;
if (preg_match('/^([^_]+)_([^_]+)/i',$objecttype,$regs))
if ($objecttype != 'order_supplier' && $objecttype != 'invoice_supplier' && preg_match('/^([^_]+)_([^_]+)/i',$objecttype,$regs))
{
$element = $regs[1];
$subelement = $regs[2];