fixed select-percent: if an extra-label was given (eg. None) it used 0% even if the value was empty or unset, now the extra-label is used

This commit is contained in:
Ralf Becker 2005-04-14 22:34:13 +00:00
parent 046291100a
commit 3f0a208c6a

View File

@ -175,7 +175,10 @@
$cell['sel_options'][intval($i)] = intval($i).'%';
}
$cell['sel_options'][100] = '100%';
if (!$rows || !empty($value))
{
$value = intval(($value+($decr/2)) / $decr) * $decr;
}
$cell['no_lang'] = True;
break;