Skip to content

Commit 0de4980

Browse files
authored
Merge pull request #4567 from c2corg/search_lang
fix: absence of search_lang param in search
2 parents f9a4a98 + b30d5d1 commit 0de4980

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/components/association-editor/AssociationsWindow.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,15 @@ export default {
105105
const text = event.target.value;
106106
107107
if (text.length >= 3) {
108-
c2c.search({ q: text, t: this.letterTypes.join(','), limit: 5 }).then(this.computePropositions);
108+
c2c
109+
.search({
110+
q: text,
111+
t: this.letterTypes.join(','),
112+
limit: 5,
113+
l: this.$language.current,
114+
pl: this.$language.current,
115+
})
116+
.then(this.computePropositions);
109117
}
110118
},
111119

src/components/generics/inputs/InputDocument.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ export default {
209209
q: this.searchText,
210210
t: this.letterTypes.join(','),
211211
limit: 7,
212+
l: this.$language.current,
213+
pl: this.$language.current,
212214
})
213215
.then((response) => {
214216
response.data.profiles = response.data.users;

0 commit comments

Comments
 (0)