From f070b8a548d785aafd74abfef9d661be52c03554 Mon Sep 17 00:00:00 2001 From: Spitzer Daniel Date: Tue, 12 Mar 2024 15:18:53 +0100 Subject: [PATCH] Zeiterfassungs Update * Autofill Bugfix --- application/Timerecording/TimerecordingController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/Timerecording/TimerecordingController.php b/application/Timerecording/TimerecordingController.php index 6899231dd..187a0c421 100644 --- a/application/Timerecording/TimerecordingController.php +++ b/application/Timerecording/TimerecordingController.php @@ -50,7 +50,6 @@ class TimerecordingController extends mfBaseController default: $return = false; } - echo $do; if (!is_array($return) || !count($return)) { $data = ["status" => "error"]; $this->returnJson($data); @@ -236,10 +235,10 @@ class TimerecordingController extends mfBaseController } if ($ajax == 1) { if ($r->ajax == 1) { - if ($isTime<0) { + if ($isTime < 0) { $isTime = 0; } - if ($cleanTime<0) { + if ($cleanTime < 0) { $cleanTime = 0; } $result['state'] = "success"; @@ -917,7 +916,6 @@ class TimerecordingController extends mfBaseController protected function fillWorkinghours($dataweek) { - $employee = TimerecordingEmployeeModel::search(['user_id' => $this->me->id]); if ($employee) { $auto_workinghours = $employee[0]->auto_workinghours; @@ -989,6 +987,8 @@ class TimerecordingController extends mfBaseController $this->updatePlushours($this->me->id); $this->updateHolidays($this->me->id); } + $result['message'] = "Ok"; + return $result; } protected function deleteAction()