mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
[bug] unable to edit event (possible fix for #17)
This commit is contained in:
parent
0ae0544066
commit
5fff77d906
@ -58,8 +58,8 @@ class API::EventsController < API::ApiController
|
||||
:amount, :reduced_amount, :nb_total_places, :availability_id,
|
||||
:all_day, :recurrence, :recurrence_end_at, :category_ids, category_ids: [],
|
||||
event_image_attributes: [:attachment], event_files_attributes: [:id, :attachment, :_destroy])
|
||||
start_date = Time.parse(event_preparams[:start_date])
|
||||
end_date = Time.parse(event_preparams[:end_date])
|
||||
start_date = Time.zone.parse(event_preparams[:start_date])
|
||||
end_date = Time.zone.parse(event_preparams[:end_date])
|
||||
start_time = Time.parse(event_preparams[:start_time]) if event_preparams[:start_time]
|
||||
end_time = Time.parse(event_preparams[:end_time]) if event_preparams[:end_time]
|
||||
if event_preparams[:all_day] == 'true'
|
||||
|
Loading…
x
Reference in New Issue
Block a user