From 70d656aa3371028e19468c458d21a83e8715df37 Mon Sep 17 00:00:00 2001 From: Godwin Date: Fri, 16 Sep 2016 10:11:24 -0700 Subject: [PATCH] Fixed error adding new hosts --- app/controllers/conferences_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/conferences_controller.rb b/app/controllers/conferences_controller.rb index a6a9fae..0eede66 100644 --- a/app/controllers/conferences_controller.rb +++ b/app/controllers/conferences_controller.rb @@ -864,7 +864,7 @@ class ConferencesController < ApplicationController end elsif ConferenceRegistration.all_considerations.include? key.to_sym registration.housing_data ||= {} - registration.housing_data['considerations'] ||= {} + registration.housing_data['considerations'] ||= [] if value.present? registration.housing_data['considerations'] |= [key] else