]> git.koha-community.org Git - koha.git/commit
Bug 28340: Alphabetise metadata for notices
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Thu, 13 May 2021 09:31:08 +0000 (10:31 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 21 Sep 2021 18:22:57 +0000 (20:22 +0200)
commitdf92c9ddf9316119e513dc93c8ece32ccab9a511
treefdc43ccd915b4af23b5c7fcf87b9ee53db91370b
parent09b66a8035c23bb9430e0a4675a5ccb54f9cfac1
Bug 28340: Alphabetise metadata for notices

This commit sorts metadata by key prior to preparing a notice with it

Test plan:

- Do not apply patch
- Create a report with the following SQL:
  SELECT * FROM message_queue;
- Create an ILL request with plenty of metadata
- Go to "Manage request"
- Send a notice to a patron
- Run the report created earlier

=> TEST:
- Observe that the metadata is in random order

- Apply the patch
- Create an ILL request with plenty of metadata
- Go to "Manage request"
- Send a notice to a patron
- Run the report created earlier

=> TEST:
- Observe that the metadata is now sorted alphabetically by key

Signed-off-by: Jill Tivey <Jill.Tivey@sasa.gov.scot>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Illrequest.pm