mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
don't user a higher paging size than max autocomplete entries are set
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
e7b0f8b001
commit
4893e1765f
1 changed files with 2 additions and 2 deletions
|
|
@ -396,7 +396,7 @@
|
|||
$shareWithField.removeClass('error')
|
||||
.tooltip('hide');
|
||||
|
||||
var perPage = 200;
|
||||
var perPage = parseInt(oc_config['sharing.maxAutocompleteResults'], 10) || 200;
|
||||
this._getSuggestions(
|
||||
search.term.trim(),
|
||||
perPage,
|
||||
|
|
@ -570,7 +570,7 @@
|
|||
$shareWithField.focus();
|
||||
};
|
||||
|
||||
var perPage = 200;
|
||||
var perPage = parseInt(oc_config['sharing.maxAutocompleteResults'], 10) || 200;
|
||||
var onlyExactMatches = true;
|
||||
this._getSuggestions(
|
||||
$shareWithField.val(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue