Update linkedobjectblock.tpl.php

This commit is contained in:
Laurent Destailleur 2021-06-23 10:47:51 +02:00 committed by GitHub
parent 56212508e7
commit 9c657206b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,8 +66,11 @@ foreach ($linkedObjectBlock as $key => $objectlink)
}
} ?></td>
<td class="right"><?php
if(method_exists($objectlink, 'getSommePaiement')) echo $objectlink->getLibStatut(3, $objectlink->getSommePaiement());
else echo $objectlink->getLibStatut(3);
if (method_exists($objectlink, 'getSommePaiement')) {
echo $objectlink->getLibStatut(3, $objectlink->getSommePaiement());
} else {
echo $objectlink->getLibStatut(3);
}
?></td>
<td class="right"><a class="reposition" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=dellink&dellinkid='.$key; ?>"><?php echo img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink'); ?></a></td>
</tr>