use autocompleteDocuments for collections

This commit is contained in:
j 2020-05-16 10:43:45 +02:00
parent 545e1ba57d
commit b9b109a2c8

View file

@ -73,7 +73,11 @@ pandora.ui.filterForm = function(options) {
});
function autocompleteFunction(key) {
return key.autocomplete ? function(value, callback) {
pandora.api.autocomplete({
pandora.api[
pandora.user.ui.sections == 'documents'
? 'autocompleteDocuments'
: 'autocomplete'
]({
key: key.id,
query: {
conditions: [],