Browse Source

Fixed issue saving companions on registrations page

development
Godwin 7 years ago
committed by GitHub
parent
commit
f682a92331
  1. 2
      app/controllers/conference_administration_controller.rb

2
app/controllers/conference_administration_controller.rb

@ -1115,7 +1115,7 @@ class ConferenceAdministrationController < ApplicationController
registration.housing_data ||= {}
registration.housing_data['companion'] ||= {}
registration.housing_data['companion']['email'] = value
registration.housing_data['companion']['id'] = User.find_user(value)
registration.housing_data['companion']['id'] = User.find_user(value).id
when :preferred_language
registration.user.locale = value
user_changed = true

Loading…
Cancel
Save