Fix ConvertToTeacherAccountView to save the email field

This commit is contained in:
Scott Erickson 2016-04-07 14:40:21 -07:00
parent 8ff80fc92d
commit 5aeb559ad1
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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()