Skip to content

Commit

Permalink
Merge pull request #2882 from GPCsolutions/dolibarr-2881
Browse files Browse the repository at this point in the history
Make select_salesrepresentative() return 0 when empty
  • Loading branch information
Juanjo Menent committed May 23, 2015
2 parents 9ccc577 + 139b41c commit e9d58c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.formother.class.php
Expand Up @@ -384,7 +384,7 @@ function select_salesrepresentatives($selected,$htmlname,$user,$showstatus=0,$sh
}
// 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";
Expand Down

0 comments on commit e9d58c0

Please sign in to comment.