Skip to content

Commit

Permalink
* fixed being unable to update time bookings
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Kranz committed Nov 30, 2015
1 parent 029f16d commit e357238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/time_bookings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_list_entry
def update(tb)
time_booking = TimeBooking.find(tb[:id])
tl = time_booking.time_log
issue = Issue.find(tb[:issue_id])
issue = Issue.find_by(id: tb[:issue_id])
project = issue.nil? ? Project.find(tb[:project_id]) : issue.project

start = build_timeobj_from_strings parse_localised_date_string(tb[:tt_booking_date]), parse_localised_time_string(tb[:start_time])
Expand All @@ -82,4 +82,4 @@ def update(tb)
rescue StandardError => e
flash[:error] = e.message
end
end
end

0 comments on commit e357238

Please sign in to comment.