X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time_edit.php;h=d486d652462c116a168e3a2a4af2ba87dbd83c2d;hb=23ab58c659b527891568a385d8762bf3e6561adf;hp=82875978c632434a460c7bbdfed059105e0b2d4e;hpb=55c8f6a2bce9518c28337b18823b8300d1875ab8;p=timetracker.git diff --git a/time_edit.php b/time_edit.php index 82875978..d486d652 100644 --- a/time_edit.php +++ b/time_edit.php @@ -95,7 +95,7 @@ if ($request->isPost()) { $cl_billable = $time_rec['billable']; // Add an info message to the form if we are editing an uncompleted record. - if (($cl_start == $cl_finish) && ($cl_duration == '0:00')) { + if (strlen($cl_start) > 0 && $cl_start == $cl_finish && $cl_duration == '0:00') { $cl_finish = ''; $cl_duration = ''; $msg->add($i18n->getKey('form.time_edit.uncompleted')); @@ -271,11 +271,11 @@ if ($request->isPost()) { if ($err->no()) { // 1) Prohibit saving locked entries in any form. if ($user->isDateLocked($item_date)) - $err->add($i18n->getKey('error.period_locked')); + $err->add($i18n->getKey('error.range_locked')); // 2) Prohibit saving completed unlocked entries into locked range. if ($err->no() && $user->isDateLocked($new_date)) - $err->add($i18n->getKey('error.period_locked')); + $err->add($i18n->getKey('error.range_locked')); // 3) Prohibit saving uncompleted unlocked entries when another uncompleted entry exists. $uncompleted = ($cl_finish == '' && $cl_duration == ''); @@ -334,7 +334,7 @@ if ($request->isPost()) { if ($err->no()) { // 1) Prohibit saving into locked range. if ($user->isDateLocked($new_date)) - $err->add($i18n->getKey('error.period_locked')); + $err->add($i18n->getKey('error.range_locked')); // 2) Prohibit saving uncompleted unlocked entries when another uncompleted entry exists. $uncompleted = ($cl_finish == '' && $cl_duration == '');