Merge pull request #15151 from frederic34/patch-8

selectTypeContact return void
This commit is contained in:
Laurent Destailleur 2020-10-26 19:27:52 +01:00 committed by GitHub
commit c1cd25fb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ if ($permission)
<?php
$tmpobject = $object;
if (($object->element == 'shipping' || $object->element == 'reception') && is_object($objectsrc)) $tmpobject = $objectsrc;
echo $formcompany->selectTypeContact($tmpobject, '', 'type', 'internal');
$formcompany->selectTypeContact($tmpobject, '', 'type', 'internal');
?></div>
<div class="tagtd">&nbsp;</div>
<div class="tagtd center"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></div>
@ -117,8 +117,7 @@ if ($permission)
<?php
}
if (empty($hideaddcontactforthirdparty))
{
if (empty($hideaddcontactforthirdparty)) {
?>
<form class="tagtr pair nohover" action="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id; ?>" method="POST">