From 61fb34e738276dd2a5d431d68a9b56a4922cdf69 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 9 Mar 2016 14:52:52 +1100 Subject: [PATCH] Use user's email address as enterprise.email During registration, use the given email address only as public visible profile email address. Set the internal notification email address `enterprise.email` to the owner's email address. That can be changed later. --- .../darkswarm/services/enterprise_registration_service.js.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/darkswarm/services/enterprise_registration_service.js.coffee b/app/assets/javascripts/darkswarm/services/enterprise_registration_service.js.coffee index 68c2d74391..a7d6a657fa 100644 --- a/app/assets/javascripts/darkswarm/services/enterprise_registration_service.js.coffee +++ b/app/assets/javascripts/darkswarm/services/enterprise_registration_service.js.coffee @@ -55,7 +55,6 @@ Darkswarm.factory "EnterpriseRegistrationService", ($http, RegistrationService, excluded = [ 'address', 'country', 'id' ] for key, value of @enterprise when key not in excluded enterprise[key] = value - enterprise.email = enterprise.email_address enterprise.address_attributes = @enterprise.address if @enterprise.address? enterprise.address_attributes.country_id = @enterprise.country.id if @enterprise.country? enterprise