Merge pull request #15895 from OPEN-DSI/fix_show_default_contact_on_contact_card

FIX : Fix the display on the 'contact by default' on the contact card
This commit is contained in:
Laurent Destailleur 2021-01-06 20:02:47 +01:00 committed by GitHub
commit d31ac0fa22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1382,7 +1382,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
if (!empty($object->socid)) {
print '<tr><td class="titlefield">'.$langs->trans("ContactByDefaultFor").'</td>';
print '<td colspan="3">';
print $formcompany->showRoles("roles", $object, 'view');
print $formcompany->showRoles("roles", $object, 'view', $object->roles);
print '</td></tr>';
}