]> wagnertech.de Git - timetracker.git/blobdiff - cf_custom_fields.php
phpide-d10
[timetracker.git] / cf_custom_fields.php
index 6de626cc9cb6ee967f98d896bee1aa36b45fab13..d877e7c465354d06d4967bfae4edab2b713a61ac 100644 (file)
@@ -54,7 +54,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)
+  if (count($fields) > 0 && !isTrue('CF_DEBUG'))
     $form->getElement('btn_add')->setEnabled(false);
 }