From df796e32eb22cd212413124c1f0fd699969ddcd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 27 May 2014 18:27:53 +0200 Subject: [PATCH] fixed issue with filtersrv refactoring and removing filter parameter --- CHANGELOG.md | 1 + src/app/services/filterSrv.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2ae73d196f..4d085aa989d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ vNext - New Y-axis formater for metric values that represent seconds (Issue #427) - thx @jippi - Allow special characters in serie names (influxdb datasource), PR #390 - thx @majst01 +- Refactoring of filterSrv (Issue #428), thx @Tetha # 1.5.4 (2014-05-13) ### New features and improvements diff --git a/src/app/services/filterSrv.js b/src/app/services/filterSrv.js index 8e6a88c6a0b..4a82cff80f2 100644 --- a/src/app/services/filterSrv.js +++ b/src/app/services/filterSrv.js @@ -93,7 +93,8 @@ define([ }, removeTemplateParameter: function(templateParameter) { - this.templateParameters = _.without( this.templateParameters, templateParameter ); + this.templateParameters = _.without(this.templateParameters, templateParameter); + this.dashboard.services.filter.list = this.templateParameters; }, init: function(dashboard) {