]> wagnertech.de Git - timetracker.git/blobdiff - cf_custom_fields.php
posaune
[timetracker.git] / cf_custom_fields.php
index 53f80e4009be12768c8ce7ce47e0ae67ec8cc6db..d877e7c465354d06d4967bfae4edab2b713a61ac 100644 (file)
@@ -39,6 +39,7 @@ if (!$user->isPluginEnabled('cf')) {
   header('Location: feature_disabled.php');
   exit();
 }
+// End of access checks.
 
 $form = new Form('customFieldsForm');
 
@@ -53,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);
 }