Fix: le champ vide de la liste droulante tait 1 ce qui pouvait attribuer un contact invalide
This commit is contained in:
parent
00014d910e
commit
f44a0db145
@ -248,7 +248,7 @@ if ($_POST['action'] == 'add' && $user->rights->propale->creer)
|
||||
if ($_POST["contactidp"])
|
||||
{
|
||||
$result=$propal->add_contact($_POST["contactidp"],'CUSTOMER','external');
|
||||
|
||||
|
||||
if ($result > 0)
|
||||
{
|
||||
$error=0;
|
||||
|
||||
@ -819,7 +819,7 @@ class Form
|
||||
if ($num == 0) return 0;
|
||||
|
||||
if ($htmlname != 'none') print '<select class="flat" name="'.$htmlname.'">';
|
||||
if ($showempty) print '<option value="1"> </option>';
|
||||
if ($showempty) print '<option value="0"> </option>';
|
||||
$num = $this->db->num_rows($resql);
|
||||
$i = 0;
|
||||
if ($num)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user