Merge pull request #2882 from GPCsolutions/dolibarr-2881

Make select_salesrepresentative() return 0 when empty
This commit is contained in:
Juanjo Menent 2015-05-23 17:22:59 +02:00
commit e9d58c06a2

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";