Make select_salesrepresentative() return 0 when empty

Fix #2881
This commit is contained in:
Raphaël Doursenaud 2015-05-23 16:38:54 +02:00
parent 995a2c127d
commit 139b41c014

View File

@ -384,7 +384,7 @@ class FormOther
}
// Select each sales and print them in a select input
$out.='<select class="flat" id="'.$htmlname.'" name="'.$htmlname.'"'.$nodatarole.'>';
if ($showempty) $out.='<option value="-1">&nbsp;</option>';
if ($showempty) $out.='<option value="0">&nbsp;</option>';
// Get list of users allowed to be viewed
$sql_usr = "SELECT u.rowid, u.lastname, u.firstname, u.statut, u.login";