diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index b5408947ae..d9f515ddf7 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -45,6 +45,7 @@ class customfields_widget */ var $cf_types = array( 'text' => 'Text', + 'float' => 'Float', 'label' => 'Label', 'select' => 'Selectbox', 'ajax_select' => 'Search', @@ -312,6 +313,13 @@ class customfields_widget unset($radio); } break; + case 'float': + $known_options = array('min'=>null, 'max'=>null,'size' => $field['len'], 'precision' => null); + $options = array_merge($known_options, $field['values']); + $input =& etemplate::empty_cell($field['type'],$this->prefix.$lname,array( + 'size' => implode(',',$options) + )); + break; case 'text' : case 'textarea' : case '' : // not set