correctly concatenates params when flags are present

pull/1892/head
Jens Ulferts 10 years ago
parent 026165d850
commit 2f1e07a756
  1. 6
      app/assets/javascripts/angular/helpers/url-params-helper.js

@ -154,13 +154,13 @@ angular.module('openproject.helpers')
}
return query.exportFormats.map(function(format){
var url = relativeUrl + "." + format.format + "?" + "set_filter=1&";
var url = relativeUrl + "." + format.format + "?" + "set_filter=1";
if(format.flags){
angular.forEach(format.flags, function(flag){
url = url + flag + "=" + "true";
url = url + "&" + flag + "=" + "true";
});
}
url = url + query.getQueryString();
url = url + "&" + query.getQueryString();
return {
identifier: format.identifier,

Loading…
Cancel
Save