X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a8a191541d6f05b08bd8331bdf409af5abfac896..19b674dca67d52e7ec2ea49046f31e68fc6facf4:/cf_custom_fields.php diff --git a/cf_custom_fields.php b/cf_custom_fields.php index 53f80e40..d877e7c4 100644 --- a/cf_custom_fields.php +++ b/cf_custom_fields.php @@ -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); }