Bug 41910 - List of notice modules in letter.tt are in no particular order
Summary: List of notice modules in letter.tt are in no particular order
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-23 19:33 UTC by Lucas Gass (lukeg)
Modified: 2026-02-23 21:09 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2026-02-23 19:33:52 UTC
Based off of a comment from Bug 40255:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40255#c24


The list of notices is in no particular order:

TO RECREATE:
1. Go to Tools > Notices & Slips 
2. Click '+ New notice'
3. See each module, they are not ordered. 

I agree with Katrin, they should be ordered by code.
Comment 1 Katrin Fischer 2026-02-23 19:44:59 UTC
Just to be sure, i had meant automatically so translations are taken into account instead of hardcoded in the template.
Comment 2 Katrin Fischer 2026-02-23 21:09:28 UTC
(In reply to Katrin Fischer from comment #1)
> Just to be sure, i had meant automatically so translations are taken into
> account instead of hardcoded in the template.

We do have letter codes and descriptions. I thought as the sentence was written it could be misunderstood.

The patch I had commented on suggested sorting the list of notice modules by description within the template. This means the sequence of entries would be fixed for every language to the English alphabetic order.

I agree in general that alphabetic sorting makes sense, but it can't be a hardcoded sequence in the template. It would need to allow us to sort by translated description. 

The other option would be to have a "functional" or "logical" sort order that is independent of language.