From ad86acd40a1cfc8eac5d3204ccd9144b69017747 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Wed, 16 Nov 2011 09:47:40 +0100 Subject: [PATCH] Fixed bug in updated start/end time of time entries. --- stoptime.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stoptime.rb b/stoptime.rb index 9ee1300..e8205e0 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -883,10 +883,12 @@ module StopTime::Controllers if @input.has_key? "delete" @time_entry.delete elsif @input.has_key? "update" - attrs = ["date", "start", "end", "comment"] + attrs = ["date", "comment"] attrs.each do |attr| @time_entry[attr] = @input[attr] end + @time_entry.start = "#{@input["date"]} #{@input["start"]}" + @time_entry.end = "#{@input["date"]} #{@input["end"]}" @time_entry.task = Task.find(@input.task) @time_entry.bill = @input.has_key? "bill" @time_entry.save