Koha-clms/Koha/Template/Plugin
Martin Renvoize fa67c646a9
Bug 39781: (QA follow-up) Fix crashes, dead code and add tests
- Fix potential crash when C4::Context->userenv returns undef:
  use the established ternary guard pattern used throughout other
  TT plugins (AuthorisedValues, Branches, Desks, etc.)
- Remove dead second argument passed to GetLettersAvailableForALibrary,
  which only accepts one argument; the group_by/columns/order_by
  hashref was silently dropped
- Fix typo "librries" -> "libraries" in GetByModuleForLibrary POD
- Update POD example to use 'add_message' module matching actual usage
- Add test coverage for GetByModuleForLibrary, verifying that a user
  logged in to a branch sees branch-specific and all-libraries notices,
  while users at other branches see only all-libraries notices

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
(cherry picked from commit b18fbab806)
Signed-off-by: Jacob O'Mara <jacob.omara@openfifth.co.uk>
2026-03-25 08:49:53 +00:00
..
AdditionalContents.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Asset.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
AudioAlerts.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
AuthClient.pm Bug 37711: (follow-up) Fix AuthClient plugin database upgrade handling 2025-11-05 07:12:33 -07:00
AuthorisedValues.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Biblio.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Branches.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Categories.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
CirculationRules.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
ClassSources.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Context.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Desks.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
ExtendedAttributeTypes.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Frameworks.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
HtmlId.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
HtmlScrubber.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
HtmlTags.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
I18N.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Item.pm Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
ItemTypes.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
JSConsents.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Koha.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
KohaDates.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
KohaPlugins.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
KohaSpan.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
KohaTimes.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Languages.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
NoticeTemplates.pm Bug 39781: (QA follow-up) Fix crashes, dead code and add tests 2026-03-25 08:49:53 +00:00
Notices.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Price.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Registers.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Remove_MARC_punctuation.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
SafeURL.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
TablesSettings.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
To.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
raw.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00