FIX: corrects a regression hiding avatar in user selector (#20107)

Due to the way templates work, the incorrect variable (user instead of item) was not causing any error, and just failing silently to display the avatar.

This commit is also providing a basic spec for completion of users and groups.
This commit is contained in:
Joffrey JAFFEUX
2023-02-01 16:42:39 +01:00
committed by GitHub
parent 5c699e4384
commit df50df041a
2 changed files with 39 additions and 1 deletions

View File

@ -4,7 +4,7 @@
{{#if item.isUser}}
<li>
<a href title="{{item.name}}" class="{{item.cssClasses}}">
{{avatar user imageSize="tiny"}}
{{avatar item imageSize="tiny"}}
<span class='username'>{{format-username item.username}}</span>
{{#if item.name}}
<span class='name'>{{item.name}}</span>