From 5aeb559ad1b1f5b4697906e02e89807194044075 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Thu, 7 Apr 2016 14:40:21 -0700 Subject: [PATCH] Fix ConvertToTeacherAccountView to save the email field --- app/templates/teachers/convert-to-teacher-account-view.jade | 2 +- test/app/views/teachers/ConvertToTeacherAccountView.spec.coffee | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/teachers/convert-to-teacher-account-view.jade b/app/templates/teachers/convert-to-teacher-account-view.jade index bafdf37f2..215a0f5ef 100644 --- a/app/templates/teachers/convert-to-teacher-account-view.jade +++ b/app/templates/teachers/convert-to-teacher-account-view.jade @@ -34,7 +34,7 @@ block content .col-md-4.col-sm-6 #email-form-group.form-group label.control-label(data-i18n="general.email") - input.form-control(disabled=true value=me.get('email')) + input.form-control(name='email' disabled=true value=me.get('email')) .row.m-y-2 .col-md-offset-2.col-md-4.col-sm-6 diff --git a/test/app/views/teachers/ConvertToTeacherAccountView.spec.coffee b/test/app/views/teachers/ConvertToTeacherAccountView.spec.coffee index 166dab1a7..45797cd18 100644 --- a/test/app/views/teachers/ConvertToTeacherAccountView.spec.coffee +++ b/test/app/views/teachers/ConvertToTeacherAccountView.spec.coffee @@ -136,6 +136,7 @@ describe 'ConvertToTeacherAccountView (/teachers/update-account)', -> attrs = JSON.parse(request.params) expect(attrs.properties?.firstName).toBe('Mr') expect(attrs.properties?.siteOrigin).toBe('convert teacher') + expect(attrs.properties?.email).toBe('some@email.com') it 'redirects to /teachers/classes', -> request = jasmine.Ajax.requests.mostRecent()