Steps to reproduce
- add
'sharing.maxAutocompleteResults' => 10, to your config.php
- open the share dialog for a file
- search for a potential sharee
Expected behaviour
No error
Actual behaviour
ReferenceError: users is not defined[Learn More] sharedialogview.js:410:1
Functionality is not compromised.
In the check in https://github.com/nextcloud/server/blob/master/core/js/sharedialogview.js#L406 the users variable (and following) are not set, after some restructuring.
This could be replaced by suggestions, but we cannot get just the length as we need to use it seperately per shareType.
Perhaps best to estimate the max value on _getSuggestions.