Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Fix custom input handling of message retention setting.
Sahil Batra82aacb4996c5
diff --git a/static/js/settings_org.js b/static/js/settings_org.jsindex fc119012372..144bcfaeb0a 100644--- a/static/js/settings_org.js+++ b/static/js/settings_org.js@@ -379,7 +379,7 @@ function get_message_retention_setting_value($input_elem, for_api_data = true) {if ($custom_input.val().length === 0) {return settings_config.retain_message_forever;}- return Number.parseInt($custom_input.val(), 10);+ return Number.parseInt(Number($custom_input.val()), 10);}function get_dropdown_value_for_message_retention_setting(setting_value) {