X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_custom_field_add.php;h=056ce531abe9910b92d2e7cad0a3478fc09838e6;hb=0dcf21723daf12934f4977fcf24a0e1b1bff8021;hp=fc35cf13e4a95c3313cc68ae317bcebc0ed103da;hpb=5ef582473f6b329be18ad83c61e053fdcd9c6ed5;p=timetracker.git diff --git a/cf_custom_field_add.php b/cf_custom_field_add.php index fc35cf13..056ce531 100644 --- a/cf_custom_field_add.php +++ b/cf_custom_field_add.php @@ -43,7 +43,7 @@ if ($request->getMethod() == 'POST') { if (!$cl_required) $cl_required = 0; } - + $form = new Form('fieldForm'); $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'name','value'=>'')); $form->addInput(array('type'=>'combobox','name'=>'type', @@ -65,7 +65,7 @@ if ($request->getMethod() == 'POST') { } else $errors->add($i18n->getKey('error.db')); } -} +} // POST $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');