X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_custom_fields.php;fp=cf_custom_fields.php;h=d877e7c465354d06d4967bfae4edab2b713a61ac;hb=db25f950841ee874795d4b9605f8ae2347aaf4f1;hp=6de626cc9cb6ee967f98d896bee1aa36b45fab13;hpb=770d560338b34e0a869c78778d0cd838905fb192;p=timetracker.git 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); }