]> wagnertech.de Git - timetracker.git/blobdiff - week.php
Refactoring, moving plugin config options into config field.
[timetracker.git] / week.php
index e2aa2d9d81c27b9adc7b6d48bc4516e6e44fc2ca..05d399214d4d8e8677121006859f1a72d3a3442a 100644 (file)
--- a/week.php
+++ b/week.php
@@ -349,7 +349,7 @@ if ($request->isPost()) {
       }
     }
     if ($newEntryPosted) {
-      if ($user->isPluginEnabled('cl') && $user->isPluginEnabled('cm') && !$cl_client)
+      if ($user->isPluginEnabled('cl') && $user->isOptionEnabled('client_required') && !$cl_client)
         $err->add($i18n->get('error.client'));
       if ($custom_fields) {
         if (!ttValidString($cl_cf_1, !$custom_fields->fields[0]['required'])) $err->add($i18n->get('error.field'), $custom_fields->fields[0]['label']);