From eb290477dd7465a056308a5c9a7f304e34f2040c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 24 Jun 2008 09:56:39 +0000 Subject: [PATCH] "get the new url, email or phone cf's working" --- etemplate/inc/class.customfields_widget.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index a8eca08df7..b6c0e1b271 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -227,9 +227,6 @@ class customfields_widget case 'label' : $row_class = 'th'; break; - case 'checkbox' : - $input =& etemplate::empty_cell('checkbox',$this->prefix.$lname); - break; case 'radio' : if (count($field['values']) == 1 && isset($field['values']['@'])) { @@ -325,6 +322,12 @@ class customfields_widget unset($widget); } break; + case 'url': // other etemplate types, which are used just as is + case 'url-email': + case 'url-phone': + case 'checkbox' : + $input =& etemplate::empty_cell($field['type'],$this->prefix.$lname); + break; case 'link-entry': default : // link-entry to given app $input =& etemplate::empty_cell('link-entry',$this->prefix.$lname,array(