From: Joey Schulze Date: Sun, 28 Feb 2010 16:15:02 +0000 (+0100) Subject: Add support for decimal fields in form X-Git-Tag: 2010-06-02_customer~169 X-Git-Url: https://git.infodrom.org/?p=misc%2Fkostenrechnung;a=commitdiff_plain;h=3ac69ce96d444f4f5704f3f8ebec100ba872b6ad Add support for decimal fields in form --- diff --git a/lib/mask.php b/lib/mask.php index ef67f0d..e3c7eab 100644 --- a/lib/mask.php +++ b/lib/mask.php @@ -27,7 +27,8 @@ function build_form($name, $fields) $ret[] = sprintf('', $name); foreach ($fields as $id => $info) { - if ($info['type'] == 'text' || $info['type'] == 'passwd' || $info['type'] == 'number') { + if ($info['type'] == 'text' || $info['type'] == 'passwd' || + $info['type'] == 'decimal' || $info['type'] == 'number') { $v = array('id="edit_'.$id.'"', 'name="'.$id.'"'); $v[] = 'size="'.(empty($info['size'])?'10':$info['size']).'"';