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