Skip to content

users is not defined when sharing.maxAutocompleteResults is set #10903

@blizzz

Description

@blizzz

Steps to reproduce

  1. add 'sharing.maxAutocompleteResults' => 10, to your config.php
  2. open the share dialog for a file
  3. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions