Fix: on exclus le contact de la liste déroulante lorsqu'il est sélectionné
This commit is contained in:
parent
fc047d04c1
commit
da5c8f674d
@ -232,7 +232,9 @@ if ($id > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td colspan="1">';
|
print '<td colspan="1">';
|
||||||
$html->select_users($user->id,'contactid');
|
// On récupère les id des users déjà sélectionnés
|
||||||
|
$userAlreadySelected = $commande->getListContactId('internal');
|
||||||
|
$html->select_users($user->id,'contactid',0,$userAlreadySelected);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$commande->selectTypeContact($commande, '', 'type','internal');
|
$commande->selectTypeContact($commande, '', 'type','internal');
|
||||||
@ -261,7 +263,9 @@ if ($id > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td colspan="1">';
|
print '<td colspan="1">';
|
||||||
$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid');
|
// On récupère les id des contacts déjà sélectionnés
|
||||||
|
$contactAlreadySelected = $commande->getListContactId('external');
|
||||||
|
$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid',0,$contactAlreadySelected);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$commande->selectTypeContact($commande, '', 'type','external');
|
$commande->selectTypeContact($commande, '', 'type','external');
|
||||||
|
|||||||
@ -212,7 +212,9 @@ if ($id > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td colspan="1">';
|
print '<td colspan="1">';
|
||||||
$html->select_users($user->id,'contactid');
|
// On récupère les id des users déjà sélectionnés
|
||||||
|
$userAlreadySelected = $facture->getListContactId('internal');
|
||||||
|
$html->select_users($user->id,'contactid',0,$userAlreadySelected);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$facture->selectTypeContact($facture, '', 'type','internal');
|
$facture->selectTypeContact($facture, '', 'type','internal');
|
||||||
@ -241,7 +243,9 @@ if ($id > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td colspan="1">';
|
print '<td colspan="1">';
|
||||||
$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid');
|
// On récupère les id des contacts déjà sélectionnés
|
||||||
|
$contactAlreadySelected = $facture->getListContactId('external');
|
||||||
|
$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid',0,$contactAlreadySelected);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$facture->selectTypeContact($facture, '', 'type','external');
|
$facture->selectTypeContact($facture, '', 'type','external');
|
||||||
|
|||||||
@ -233,7 +233,9 @@ if ($id > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td colspan="1">';
|
print '<td colspan="1">';
|
||||||
$html->select_users($user->id,'contactid');
|
// On récupère les id des users déjà sélectionnés
|
||||||
|
$userAlreadySelected = $contrat->getListContactId('internal');
|
||||||
|
$html->select_users($user->id,'contactid',0,$userAlreadySelected);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$contrat->selectTypeContact($contrat, '', 'type','internal');
|
$contrat->selectTypeContact($contrat, '', 'type','internal');
|
||||||
@ -262,7 +264,9 @@ if ($id > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td colspan="1">';
|
print '<td colspan="1">';
|
||||||
$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid');
|
// On récupère les id des contacts déjà sélectionnés
|
||||||
|
$contactAlreadySelected = $contrat->getListContactId('external');
|
||||||
|
$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid',0,$contactAlreadySelected);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$contrat->selectTypeContact($contrat, '', 'type','external');
|
$contrat->selectTypeContact($contrat, '', 'type','external');
|
||||||
|
|||||||
@ -218,7 +218,9 @@ if ($id > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td colspan="1">';
|
print '<td colspan="1">';
|
||||||
$html->select_users($user->id,'contactid');
|
// On récupère les id des users déjà sélectionnés
|
||||||
|
$userAlreadySelected = $fichinter->getListContactId('internal');
|
||||||
|
$html->select_users($user->id,'contactid',0,$userAlreadySelected);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$fichinter->selectTypeContact($fichinter, '', 'type','internal');
|
$fichinter->selectTypeContact($fichinter, '', 'type','internal');
|
||||||
@ -247,7 +249,9 @@ if ($id > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td colspan="1">';
|
print '<td colspan="1">';
|
||||||
$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid');
|
// On récupère les id des contacts déjà sélectionnés
|
||||||
|
$contactAlreadySelected = $fichinter->getListContactId('external');
|
||||||
|
$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid',0,$contactAlreadySelected);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$fichinter->selectTypeContact($fichinter, '', 'type','external');
|
$fichinter->selectTypeContact($fichinter, '', 'type','external');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user