diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/controller.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/controller.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/controller.js b/server/sonar-web/src/main/js/apps/issues/controller.js index fb952246b91..54e74f39980 100644 --- a/server/sonar-web/src/main/js/apps/issues/controller.js +++ b/server/sonar-web/src/main/js/apps/issues/controller.js @@ -34,12 +34,6 @@ export default Controller.extend({ } }, - ensureResolution(query) { - return query.resolutions || query.statuses ? - _.omit(query, 'resolved') : - _.extend({}, query, { resolved: false }); - }, - fetchList: function (firstPage) { var that = this; if (firstPage == null) { @@ -50,9 +44,8 @@ export default Controller.extend({ this.hideHomePage(); this.closeComponentViewer(); } - var data = this._issuesParameters(), - query = this.ensureResolution(this.options.app.state.get('query')); - _.extend(data, query); + var data = this._issuesParameters(); + _.extend(data, this.options.app.state.get('query')); if (this.options.app.state.get('isContext')) { _.extend(data, this.options.app.state.get('contextQuery')); } @@ -151,7 +144,7 @@ export default Controller.extend({ newSearch: function () { this.options.app.state.unset('filter'); - return this.options.app.state.setQuery({}); + return this.options.app.state.setQuery({ resolved: 'false' }); }, applyFilter: function (filter, ignoreQuery) { @@ -179,7 +172,7 @@ export default Controller.extend({ if (addContext == null) { addContext = false; } - var filter = this.ensureResolution(this.options.app.state.get('query')); + var filter = this.options.app.state.get('query'); if (addContext && this.options.app.state.get('isContext')) { _.extend(filter, this.options.app.state.get('contextQuery')); } @@ -237,6 +230,7 @@ export default Controller.extend({ }, showHomePage: function () { + this.options.app.state.set({ query: { resolved: 'false' } }, { silent: true }); this.fetchList(); this.options.app.layout.workspaceComponentViewerRegion.reset(); key.setScope('home'); |