From f870741d9de301e73b7e47b7aaa0db5ac42d752f Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 20 Mar 2017 18:51:43 +0000 Subject: [PATCH] [#2913] [Notifications] Fix webui passing string for port value --- .../plugins/notifications/notifications/data/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/plugins/notifications/notifications/data/notifications.js b/deluge/plugins/notifications/notifications/data/notifications.js index 424eec58b..6e66b97c7 100644 --- a/deluge/plugins/notifications/notifications/data/notifications.js +++ b/deluge/plugins/notifications/notifications/data/notifications.js @@ -380,7 +380,7 @@ Deluge.ux.preferences.NotificationsPage = Ext.extend(Ext.Panel, { config['smtp_enabled'] = this.chkEnableEmail.getValue(); config['smtp_host'] = this.hBoxHost.getComponent(1).getValue(); - config['smtp_port'] = this.hBoxPort.getComponent(1).getValue(); + config['smtp_port'] = Number(this.hBoxPort.getComponent(1).getValue()); config['smtp_user'] = this.hBoxUser.getComponent(1).getValue(); config['smtp_pass'] = this.hBoxPassword.getComponent(1).getValue(); config['smtp_from'] = this.hBoxFrom.getComponent(1).getValue();