Add possibility to add linked object block in object card for external module
Fix: templates integration
This commit is contained in:
parent
379b3a63ab
commit
d8982e5d8c
@ -1967,6 +1967,7 @@ if ($id > 0 || ! empty($ref))
|
||||
if($conf->$object->enabled)
|
||||
{
|
||||
$propal->showLinkedObjectBlock($object,$objectid,$somethingshown);
|
||||
$somethingshown = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<!-- BEGIN PHP TEMPLATE -->
|
||||
|
||||
<?php
|
||||
if ($somethingshown) { echo '<br>'; $somethingshown=1; }
|
||||
if ($somethingshown) { echo '<br>'; }
|
||||
print_titre($langs->trans('RelatedOrders'));
|
||||
?>
|
||||
<table class="noborder" width="100%">
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<!-- BEGIN PHP TEMPLATE -->
|
||||
|
||||
<?php
|
||||
if ($somethingshown) { echo '<br>'; $somethingshown=1; }
|
||||
if ($somethingshown) { echo '<br>'; }
|
||||
if ($num > 1) print_titre($langs->trans("RelatedBills"));
|
||||
else print_titre($langs->trans("RelatedBill"));
|
||||
?>
|
||||
|
||||
@ -512,8 +512,7 @@ if ($id > 0 || ! empty($ref))
|
||||
{
|
||||
if($conf->$object->enabled)
|
||||
{
|
||||
$propal->showLinkedObjectBlock($object,$objectid,$somethingshown);
|
||||
$somethingshown = 1;
|
||||
$somethingshown=$propal->showLinkedObjectBlock($object,$objectid,$somethingshown);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1032,6 +1032,7 @@ class CommonObject
|
||||
$linkedObjectBlock = new $class($this->db);
|
||||
if ($object == 'facture') $object = 'compta/'.$object;
|
||||
include(DOL_DOCUMENT_ROOT.'/'.$object.'/tpl/linkedobjectblock.tpl.php');
|
||||
return $num;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user