Fixed Trac #292: enums can now be null (if allowed) !

SVN:trunk[910]
This commit is contained in:
Denis Flaven
2010-10-21 09:23:41 +00:00
parent 931075687a
commit 22cf8e4986
6 changed files with 132 additions and 3 deletions

View File

@@ -1133,7 +1133,7 @@ EOF
// Few choices, use a normal 'select'
// In case there are no valid values, the select will be empty, thus blocking the user from validating the form
$sHTMLValue = "<select title=\"$sHelpText\" name=\"attr_{$sFieldPrefix}{$sAttCode}{$sNameSuffix}\" id=\"$iId\">\n";
$sHTMLValue .= "<option value=\"0\">".Dict::S('UI:SelectOne')."</option>\n";
$sHTMLValue .= "<option value=\"\">".Dict::S('UI:SelectOne')."</option>\n";
foreach($aAllowedValues as $key => $display_value)
{
if ((count($aAllowedValues) == 1) && $bMandatory )