X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_custom_field_edit.php;h=b6a1f461378a72ebf18f1c6f8b0079f143af3b50;hb=1fad211ab12fc66117094e33425f8414fccd2cfa;hp=15146db67b00db3665c2a6b5d6320455bb87cbef;hpb=fd3db1c1a2b975a23c907b2e9b714a0cfe47f3e0;p=timetracker.git diff --git a/cf_custom_field_edit.php b/cf_custom_field_edit.php index 15146db6..b6a1f461 100644 --- a/cf_custom_field_edit.php +++ b/cf_custom_field_edit.php @@ -42,7 +42,7 @@ if (false === $field) $errors->add($i18n->getKey('error.db')); $form = new Form('fieldForm'); -if ($errors->isEmpty()) { +if ($errors->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'])); @@ -62,7 +62,7 @@ if ($request->getMethod() == 'POST') { // Validate user input. if (!ttValidString($cl_name)) $errors->add($i18n->getKey('error.field'), $i18n->getKey('label.thing_name')); - if ($errors->isEmpty()) { + if ($errors->no()) { $res = CustomFields::updateField($cl_id, $cl_name, $cl_type, $cl_required); if ($res) { header('Location: cf_custom_fields.php');