X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_option_delete.php;h=a1f4b139c53d597436d2abbe7a14ee22287163f1;hb=c46106d305d91e93fb63c0d601a5a006a02bb63a;hp=404896fa4c16d6611d62962c3d805c4484c30af3;hpb=b5d95bbf6e8ce2b60c6640cdee5571025524e1a6;p=timetracker.git diff --git a/cf_dropdown_option_delete.php b/cf_dropdown_option_delete.php index 404896fa..a1f4b139 100644 --- a/cf_dropdown_option_delete.php +++ b/cf_dropdown_option_delete.php @@ -58,17 +58,17 @@ if ($request->getMethod() == 'POST') { exit(); } } else { - $option = CustomFields::getOptionName($cl_id); + $option = CustomFields::getOptionName($cl_id); if (false === $option) $errors->add($i18n->getKey('error.db')); - if ($errors->isEmpty()) { + if ($errors->no()) { $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id)); $form->addInput(array('type'=>'submit','name'=>'btn_delete','value'=>$i18n->getKey('label.delete'))); $form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->getKey('button.cancel'))); } } - + $smarty->assign('option', $option); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.optionDeleteForm.btn_cancel.focus()"');