diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-03-10 16:55:56 +0100 |
---|---|---|
committer | Grégoire Aubert <gregaubert@users.noreply.github.com> | 2017-03-13 10:03:16 +0100 |
commit | 2d22a720e0a0fedceff5f4ba010de5ce4ec80634 (patch) | |
tree | 35cb75eaed743d59dd4f4d505da479bc2ac8f90c /server/sonar-web/src/main/js | |
parent | 35c9fca6f04c5bf3e9da0841f142005ea37ec1d6 (diff) | |
download | sonarqube-2d22a720e0a0fedceff5f4ba010de5ce4ec80634.tar.gz sonarqube-2d22a720e0a0fedceff5f4ba010de5ce4ec80634.zip |
SONAR-8875 Fixes a bug with array metrics (languages, tags)
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/filters/utils.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/utils.js b/server/sonar-web/src/main/js/apps/projects/filters/utils.js index b1d35b64cdd..4cbd4ed410c 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/utils.js +++ b/server/sonar-web/src/main/js/apps/projects/filters/utils.js @@ -17,14 +17,20 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import each from 'lodash/each'; import omitBy from 'lodash/omitBy'; import isNil from 'lodash/isNil'; export const getFilterUrl = (ownProps, part) => { - const basePathName = ownProps.organization ? - `/organizations/${ownProps.organization.key}/projects` : - '/projects'; + const basePathName = ownProps.organization + ? `/organizations/${ownProps.organization.key}/projects` + : '/projects'; const pathname = basePathName + (ownProps.isFavorite ? '/favorite' : ''); const query = omitBy({ ...ownProps.query, ...part }, isNil); + each(query, (value, key) => { + if (Array.isArray(value)) { + query[key] = value.join(','); + } + }); return { pathname, query }; }; |