From f682a92331d65fec98c5e0a8186751b832e52bfe Mon Sep 17 00:00:00 2001 From: Godwin Date: Fri, 7 Jul 2017 10:37:09 -0700 Subject: [PATCH] Fixed issue saving companions on registrations page --- app/controllers/conference_administration_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/conference_administration_controller.rb b/app/controllers/conference_administration_controller.rb index 83853ff..1354ef8 100644 --- a/app/controllers/conference_administration_controller.rb +++ b/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