X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_custom_field_edit.php;h=8b481a67821e47155c7609c116c6c75de9f48fea;hb=ad98b13400fdc2fa2299a22c9bd54c4cd27960c3;hp=b8e0f8ece6e5f6cd82677dd997bd0141d873228e;hpb=5a6a33edf0ec2ac012715e12c35c7285b64c099b;p=timetracker.git diff --git a/cf_custom_field_edit.php b/cf_custom_field_edit.php index b8e0f8ec..8b481a67 100644 --- a/cf_custom_field_edit.php +++ b/cf_custom_field_edit.php @@ -45,7 +45,7 @@ $form = new Form('fieldForm'); if ($err->no()) { $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'name','value'=>$field['label'])); $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id)); - $form->addInput(array('type'=>'checkbox','name'=>'required','data'=>1,'value'=>$field['required'])); + $form->addInput(array('type'=>'checkbox','name'=>'required','value'=>$field['required'])); $form->addInput(array('type'=>'combobox','name'=>'type','value'=>$field['type'], 'data'=>array(CustomFields::TYPE_TEXT=>$i18n->getKey('label.type_text'), CustomFields::TYPE_DROPDOWN=>$i18n->getKey('label.type_dropdown'))));