Closed sprengerdaniel closed 11 months ago
internal issue: 701
Hi @sprengerdaniel,
Thanks for the issue.
In my opinion, your fix is fine.
rel-6_5: https://github.com/znuny/Znuny/commit/3a4f5ba9e7640d13ebda4bcb0f7e1c441409d7b0 rel-7_0: https://github.com/znuny/Znuny/commit/eca392025b2681122164ca28dfd4c0662dcc2be9
🚀
Environment
Expected behaviour
This is not directly a bug, but more like an improvement. If you want to use a snippet and type
##
in rich text editor, you get a list of available snippets. From the point of view of the agent this is unsorted. In source code, you see it is sorted by id but the agent does not see the id (he also is not interested in it). From the point of view of the agent it would be better to sort the snippets by name, because the name is also changeable (leading_numbers for example).Actual behaviour
If you want to use a snippet and type
##
in rich text editor, you get a list of available snippets. From the point of view of the agent this is unsorted. In source code, you see it is sorted by id but the agent does not see the id (he also is not interested in it).How to reproduce
Steps to reproduce the behavior:
##anr
Additional information
Change the sorting in Kernel/System/Autocompletion/Template.pm, about line 117 to
(Did it on my testsystem. No issues so far but also no bulletproofed tests 😉)
Screenshots