From 4392ddb2a8f6bbf635aaa71e329140e7a8d5a5bd Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 3 Dec 2014 09:47:27 +0100 Subject: [PATCH] Fix generating issues url from ruby --- .../main/webapp/WEB-INF/app/helpers/application_helper.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index be210cffe4e..2a8070d1e28 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -991,11 +991,14 @@ module ApplicationHelper def url_for_issues(params) url = ApplicationController.root_context + '/issues/search#' - params.each do |key, value| + params.each_with_index do |(key, value), index| if key == 'filter' key = 'id' end - url += key.to_s + '=' + value.to_s + '|' + url += key.to_s + '=' + value.to_s + if index < params.size - 1 + url += '|' + end end url end -- 2.39.5