Skip to content

Commit

Permalink
#302 [Attendants] fix: alreadySelectedSignatories for second tab
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-theo committed May 4, 2023
1 parent a812d08 commit f0207ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/saturne_attendants.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,9 @@
print '</td>';
print '<td class=minwidth400">';
if ($selectedCompany <= 0) {
print img_picto('', 'user', 'class="pictofixedwidth"') . $form->select_dolusers('', 'attendant' . $attendantRole . 'user', 1, $alreadyAddedSignatories, 0, '', '', $conf->entity, 0, 0, '', 0, '', 'minwidth200 widthcentpercentminusx maxwidth300') . '<br>';
print img_picto('', 'user', 'class="pictofixedwidth"') . $form->select_dolusers('', 'attendant' . $attendantRole . 'user', 1, $alreadyAddedSignatories['user'], 0, '', '', $conf->entity, 0, 0, '', 0, '', 'minwidth200 widthcentpercentminusx maxwidth300') . '<br>';
}
print img_object('', 'contact', 'class="pictofixedwidth"') . $form->selectcontacts(($selectedCompany > 0 ? $selectedCompany : -1), GETPOST('contactID'), 'attendant' . $attendantRole . 'contact', 1, $alreadyAddedSignatories, '', 1, 'minwidth200 widthcentpercentminusx maxwidth300');
print img_object('', 'contact', 'class="pictofixedwidth"') . $form->selectcontacts(($selectedCompany > 0 ? $selectedCompany : -1), GETPOST('contactID'), 'attendant' . $attendantRole . 'contact', 1, $alreadyAddedSignatories['socpeople'], '', 1, 'minwidth200 widthcentpercentminusx maxwidth300');
if (!empty($selectedCompany) && $selectedCompany > 0 && $user->rights->societe->creer) {
$newcardbutton = '<a href="'.DOL_URL_ROOT.'/contact/card.php?socid=' . $selectedCompany . '&action=create&backtopage=' . urlencode($_SERVER['PHP_SELF'] . '?id=' . $object->id . '&module_name=' . urlencode($moduleName) . '&object_type=' . urlencode($object->element) . '&newcompany' . $attendantRole . '=' . GETPOST('newcompany' . $attendantRole) . '&contactID=&#95;&#95;ID&#95;&#95;') . '" title="' . $langs->trans('NewContact') . '"><span class="fa fa-plus-circle valignmiddle paddingleft"></span></a>';
print $newcardbutton;
Expand Down

0 comments on commit f0207ed

Please sign in to comment.