Fixed registration status issues

This commit is contained in:
Godwin
2017-01-12 18:22:37 -08:00
parent 6bd7f11c52
commit 5118fa7135
5 changed files with 26 additions and 8 deletions
@@ -867,7 +867,12 @@ class ConferenceAdministrationController < ApplicationController
params.each do | key, value |
case key.to_sym
when :city
registration.city = value.present? ? view_context.location(Geocoder.search(value, language: @this_conference.locale).first, @this_conference.locale) : nil
if value.present?
city = City.search(value)
if city.present?
registration.city_id = city.id
end
end
when :housing, :bike, :food, :allergies, :other
registration.send("#{key.to_s}=", value)
when :registration_fees_paid