home.py: Fix bug associated with email_changes_disabled.

On reloading the page after disabling email changes does not check
the "Prevent users from changing their email address".
Adding realm_email_changes_disabled to page_params_core_fields fixes the problem.
This commit is contained in:
Raghav Jajodia 2017-03-13 23:11:27 +05:30 committed by Tim Abbott
parent c921736db2
commit dc48b87765
2 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ class HomeTest(ZulipTestCase):
"realm_create_stream_by_admins_only",
"realm_default_language",
"realm_default_streams",
"realm_email_changes_disabled",
"realm_emoji",
"realm_filters",
"realm_icon_source",

View File

@ -294,6 +294,7 @@ def home_real(request):
'realm_create_stream_by_admins_only',
'realm_default_language',
'realm_default_streams',
'realm_email_changes_disabled',
'realm_emoji',
'realm_icon_source',
'realm_icon_url',