Skip to content

Commit

Permalink
now with the fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Jun 11, 2018
1 parent 1feb0c0 commit aca8c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def new
new_params = event_params(detail)
group_events = new_params[:event_groups_attributes] ||= []
@event.event_groups.each do |group_event|
if (group_index = group_events.find_index { |it| it[:group_id].to_i == group_event.group_id })
if (group_index = group_events.find_index { |it| it[:group_id].to_s == group_event.group_id.to_s })
group_events.delete_at(group_index)
else
group_events << { id: group_event.id, _destroy: true }
Expand Down

0 comments on commit aca8c93

Please sign in to comment.