Fix: missing linked objects
This commit is contained in:
parent
9b37523062
commit
055e7ea2fe
@ -1278,7 +1278,7 @@ class CommonObject
|
|||||||
{
|
{
|
||||||
// Parse element/subelement (ex: project_task)
|
// Parse element/subelement (ex: project_task)
|
||||||
$module = $element = $subelement = $objecttype;
|
$module = $element = $subelement = $objecttype;
|
||||||
if (preg_match('/^([^_]+)_([^_]+)/i',$objecttype,$regs))
|
if ($objecttype != 'order_supplier' && $objecttype != 'invoice_supplier' && preg_match('/^([^_]+)_([^_]+)/i',$objecttype,$regs))
|
||||||
{
|
{
|
||||||
$module = $element = $regs[1];
|
$module = $element = $regs[1];
|
||||||
$subelement = $regs[2];
|
$subelement = $regs[2];
|
||||||
@ -1291,8 +1291,8 @@ class CommonObject
|
|||||||
if ($objecttype == 'propal') { $classpath = 'comm/propal/class'; }
|
if ($objecttype == 'propal') { $classpath = 'comm/propal/class'; }
|
||||||
if ($objecttype == 'shipping') { $classpath = 'expedition/class'; $subelement = 'expedition'; $module = 'expedition_bon'; }
|
if ($objecttype == 'shipping') { $classpath = 'expedition/class'; $subelement = 'expedition'; $module = 'expedition_bon'; }
|
||||||
if ($objecttype == 'delivery') { $classpath = 'livraison/class'; $subelement = 'livraison'; $module = 'livraison_bon'; }
|
if ($objecttype == 'delivery') { $classpath = 'livraison/class'; $subelement = 'livraison'; $module = 'livraison_bon'; }
|
||||||
if ($objecttype == 'invoice_supplier') { $classpath = 'fourn/class'; }
|
if ($objecttype == 'invoice_supplier') { $classpath = 'fourn/class'; $module = 'fournisseur'; }
|
||||||
if ($objecttype == 'order_supplier') { $classpath = 'fourn/class'; }
|
if ($objecttype == 'order_supplier') { $classpath = 'fourn/class'; $module = 'fournisseur'; }
|
||||||
if ($objecttype == 'fichinter') { $classpath = 'fichinter/class'; $subelement = 'fichinter'; $module = 'ficheinter'; }
|
if ($objecttype == 'fichinter') { $classpath = 'fichinter/class'; $subelement = 'fichinter'; $module = 'ficheinter'; }
|
||||||
|
|
||||||
// TODO ajout temporaire - MAXIME MANGIN
|
// TODO ajout temporaire - MAXIME MANGIN
|
||||||
@ -1641,7 +1641,7 @@ class CommonObject
|
|||||||
{
|
{
|
||||||
$tplpath = $element = $subelement = $objecttype;
|
$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];
|
$element = $regs[1];
|
||||||
$subelement = $regs[2];
|
$subelement = $regs[2];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user