diff options
author | Phil Hughes <me@iamphill.com> | 2018-10-22 12:29:46 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-22 12:29:46 +0300 |
commit | 63b2b1b426d29992b997eff536052f6073e38415 (patch) | |
tree | bd8c8b9bc1b06004b385fe236fa52559f12645eb /app | |
parent | 44a9231d19f88c5551f7184917ddc4bba13e7d00 (diff) |
Fixed source projects not filtering
Filtering source projects in the merge request creation form
would show a flash error because it is trying to filter remotely
to an undefined URL.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52728
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/compare_autocomplete.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/compare_autocomplete.js b/app/assets/javascripts/compare_autocomplete.js index 852d71f4e84..37a3ceb5341 100644 --- a/app/assets/javascripts/compare_autocomplete.js +++ b/app/assets/javascripts/compare_autocomplete.js @@ -40,7 +40,7 @@ export default function initCompareAutocomplete(limitTo = null, clickHandler = ( }, selectable: true, filterable: true, - filterRemote: true, + filterRemote: !!$dropdown.data('refsUrl'), fieldName: $dropdown.data('fieldName'), filterInput: 'input[type="search"]', renderRow: function(ref) { |