diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 02a6260bad1..c6dc1f97760 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -1396,11 +1396,12 @@ else print ''; } - // Assign a Name + // Assign a sale representative print ''; print ''.fieldLabel('AllocateCommercial','commercial_id').''; print ''; $userlist = $form->select_dolusers('', '', 0, null, 0, '', '', 0, 0, 0, '', 0, '', '', 0, 1); + // Note: If user has no right to "see all thirdparties", we for selection of sale representative to him, so after creation he can see the record. print $form->multiselectarray('commercial', $userlist, (count(GETPOST('commercial', 'array')) > 0?GETPOST('commercial', 'array'):(empty($user->rights->societe->client->voir)?array($user->id):array())), null, null, null, null, "90%"); print '';