diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-09-26 21:35:11 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-09-26 21:35:11 +0000 |
commit | 74d35075b9c5f051b631214b61b97107ac6fed2e (patch) | |
tree | 814f77e60d13baf0123c4344bfa084cae32c7206 /app/assets | |
parent | 709c7009e5fbf67c53a9c09fe0754e605363b07b (diff) | |
parent | ad5f835ceefb4b05f9373381b1581a5f142adf2d (diff) | |
download | gitlab-ce-74d35075b9c5f051b631214b61b97107ac6fed2e.tar.gz |
Merge branch 'issue-boards-filter-label-spaces' into 'master'
Fixed list issues not loading with spaces in filtered values
## What does this MR do?
Vue resource is very kindly encoding our URL params when sending. However - we didn't actually want the `+` to be encoded because Rails reads that as a space, but doesn't read the encoded value as a space :confused:
This converts the `+` into spaces :thumbsup:
## What are the relevant issue numbers?
Closes #21920
See merge request !6258
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/lib/utils/url_utility.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/url_utility.js b/app/assets/javascripts/lib/utils/url_utility.js index f84a20cf0fe..b8d52becb3f 100644 --- a/app/assets/javascripts/lib/utils/url_utility.js +++ b/app/assets/javascripts/lib/utils/url_utility.js @@ -19,7 +19,7 @@ while (i < sURLVariables.length) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { - values.push(sParameterName[1]); + values.push(sParameterName[1].replace(/\+/g, ' ')); } i++; } |