X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=ca48056a8aeff5b62859b9250fd8bc5f3584374f;hb=040c6516659e15f360159859b783e3722e86f370;hp=d05f0c59943be4295e7d349f1bcde5f54829f76f;hpb=05f0dada8939fad19e44c9ff26bad6ae578e34cc;p=timetracker.git diff --git a/time.php b/time.php index d05f0c59..ca48056a 100644 --- a/time.php +++ b/time.php @@ -306,7 +306,7 @@ if ($request->isPost()) { if ($request->getParameter('btn_submit')) { // Validate user input. - if ($showClient && $user->isPluginEnabled('cm') && !$cl_client) + if ($showClient && $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']); @@ -448,6 +448,7 @@ $smarty->assign('selected_date', $selected_date); $smarty->assign('week_total', $week_total); $smarty->assign('day_total', ttTimeHelper::getTimeForDay($cl_date)); $smarty->assign('time_records', $timeRecords); +$smarty->assign('show_navigation', $user->isPluginEnabled('wv') && !$user->getConfigOption('menu_week')); $smarty->assign('show_client', $showClient); $smarty->assign('show_cf_1', $user->isPluginEnabled('cf')); $smarty->assign('show_project', $showProject);