org settings: Fix discard changes for realm_create_stream_permission.

On discarding changes made for `realm_create_stream_permission` always
"by_admin_user_with_custom_time" get selected because
`create_stream_by_admins_only` isn't a valid page_param.
This commit is contained in:
Shubham Dhama 2018-03-25 00:45:29 +05:30 committed by Tim Abbott
parent ce156dd21d
commit f17fa3305b
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ function _set_up() {
if (property_name === 'realm_message_content_edit_limit_minutes') {
return Math.ceil(page_params.realm_message_content_edit_limit_seconds / 60).toString();
} else if (property_name === 'realm_create_stream_permission') {
if (page_params.create_stream_by_admins_only) {
if (page_params.realm_create_stream_by_admins_only) {
return "by_admins_only";
}
if (page_params.realm_waiting_period_threshold === 0) {