From 46f143a103e52742764e08e6cf7ecf3143324bdf Mon Sep 17 00:00:00 2001 From: Thomas Burkhalter Date: Fri, 13 Dec 2024 17:13:50 +0100 Subject: [PATCH] Use split interface on committed worktimes --- app/controllers/ordertimes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ordertimes_controller.rb b/app/controllers/ordertimes_controller.rb index 49854214..dd87dc37 100644 --- a/app/controllers/ordertimes_controller.rb +++ b/app/controllers/ordertimes_controller.rb @@ -12,7 +12,7 @@ class OrdertimesController < WorktimesController after_destroy :send_email_notification def update - if entry.employee_id == @user.id + if entry.employee_id == @user.id && !entry.worktimes_committed? super else build_splitable