A platform for community discussion. Free, open, simple.
FIX: only send up to 100 selected tags in the tag search request to avoid sending a query string that's too long
Neil Lalondece26f48f97e1
diff --git a/app/assets/javascripts/discourse/components/tag-chooser.js.es6 b/app/assets/javascripts/discourse/components/tag-chooser.js.es6index 00fc2444879..9f962596e44 100644--- a/app/assets/javascripts/discourse/components/tag-chooser.js.es6+++ b/app/assets/javascripts/discourse/components/tag-chooser.js.es6@@ -109,12 +109,15 @@ export default Ember.TextField.extend({url: Discourse.getURL("/tags/filter/search"),dataType: 'json',data: function (term) {+ const selectedTags = self.get('tags');const d = {q: term,limit: self.siteSettings.max_tag_search_results,- categoryId: self.get('categoryId'),- selected_tags: self.get('tags')+ categoryId: self.get('categoryId')};+ if (selectedTags) {+ d.selected_tags = selectedTags.slice(0,100);+ }if (!self.get('everyTag')) {d.filterForInput = true;}