Skip to content

User: fix ids passed to filters in autocomplete (47829)#11611

Open
schmitz-ilias wants to merge 1 commit into
ILIAS-eLearning:release_11from
schmitz-ilias:bt-47829
Open

User: fix ids passed to filters in autocomplete (47829)#11611
schmitz-ilias wants to merge 1 commit into
ILIAS-eLearning:release_11from
schmitz-ilias:bt-47829

Conversation

@schmitz-ilias
Copy link
Copy Markdown
Contributor

This PR fixes the user autocomplete in EmployeeTalk, see also 47829, but the problem should apply to all usages of ilUserAutoComplete::getList where a user filter is set.

The underlying issue is that array_merge re-indexes arrays with numerical keys, so when using array_keys to build the list of user IDs that is then passed to the filter, you always get [0, 1, 2, ...]. Using array_replace instead of array_merge fixes that.

@schmitz-ilias schmitz-ilias added bugfix php Pull requests that update Php code labels May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants