X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/395edff71f2a114bc3cbccf1c970d4419d9db8d4..c51ac80bc7cbb4b2f77b75cd4120b62675aa7014:/mobile/time_edit.php diff --git a/mobile/time_edit.php b/mobile/time_edit.php index f80611f3..dcf76211 100644 --- a/mobile/time_edit.php +++ b/mobile/time_edit.php @@ -218,6 +218,9 @@ if ($request->isPost()) { if (MODE_PROJECTS == $user->tracking_mode || MODE_PROJECTS_AND_TASKS == $user->tracking_mode) { if (!$cl_project) $err->add($i18n->getKey('error.project')); } + if (MODE_PROJECTS_AND_TASKS == $user->tracking_mode && $user->task_required) { + if (!$cl_task) $err->add($i18n->getKey('error.task')); + } if (!$cl_duration) { if ('0' == $cl_duration) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.duration'));