Skip to content
Snippets Groups Projects
Commit 28705b41 authored by Manuel Leduc's avatar Manuel Leduc
Browse files

XWIKI-21999: The attachment Gallery picker does not find custom image in multilingual XWiki

(cherry picked from commit 6cfc9590)
parent 6a4c1896
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,9 @@ define('xwiki-attachment-picker-solr-search', ['jquery'], function($) {
} else {
typesFqs = [];
}
const computedFqs = ['type:ATTACHMENT'].concat(optionsFqs).concat(typesFqs);
// Forcing the acceptance of all locales, otherwise only the attachments of documents with the same locale
// as the current document are returned.
const computedFqs = ['type:ATTACHMENT', 'locale:*'].concat(optionsFqs).concat(typesFqs);
const computedParams = [];
computedParams.push(...computedFqs.map((fq) => 'fq=' + fq));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment