]> wagnertech.de Git - timetracker.git/blobdiff - cf_custom_fields.php
Refactoring - renamed a few things.
[timetracker.git] / cf_custom_fields.php
index 18de06059345d330fcefe564e145d510fcc7aa7d..44efc79b65f5532b0dcb3d27812e7a31c00e5f6a 100644 (file)
@@ -50,7 +50,7 @@ if ($request->isPost()) {
   $fields = CustomFields::getFields();
   // At this time only one custom field is supported. Disable the Add button if we already have one or more custom fields.
   if (count($fields) > 0)
-    $form->getElement('btn_add')->setEnable(false);
+    $form->getElement('btn_add')->setEnabled(false);
 }
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));