]> source.dussan.org Git - sonarqube.git/commitdiff
fix requesting of issues facet
authorStas Vilchik <vilchiks@gmail.com>
Thu, 10 Nov 2016 15:47:03 +0000 (16:47 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 10 Nov 2016 15:47:03 +0000 (16:47 +0100)
server/sonar-web/src/main/js/apps/issues/controller.js

index 8c5d2cf54f47e8037360bf1e6d4af6ce5240bd13..0771617c3a00c1c3f6770fc766176d9e47de676b 100644 (file)
@@ -101,6 +101,9 @@ export default Controller.extend({
     const that = this;
     const facet = this.options.app.facets.get(id);
     const data = _.extend({ facets: id, ps: 1, additionalFields: '_all' }, this.options.app.state.get('query'));
+    if (this.options.app.state.get('query').assigned_to_me) {
+      _.extend(data, { assignees: '__me__' });
+    }
     if (this.options.app.state.get('isContext')) {
       _.extend(data, this.options.app.state.get('contextQuery'));
     }