Koha-clms/Koha/ERM
Pedro Amorim 023f935360
Bug 39823: Identify error messages based on code
Even if severity does not exist. Additionally, only add severity to message if it exists.

Test plan:
1) Apply tests patches. Run tests (they should fail):
prove t/db_dependent/Koha/BackgroundJobs/ErmSushiHarvester.t
2) Apply this patch and run tests again (they should pass this time).

UI test:
1) Create a new data provider linked to Gale Cengage, service url:
https://api.siqcloud.online/counterapi/r51
2) Add report release 5, customer id: '123', requestor id: '123', report types: 'TR_J1'
3) Run a report for this data provider, from Feb 2025 to Apr 2025. Notice that before applying patches, the job report results in a red bar with no error message.
4) Apply patches, repeat 3. Notice it now results in a nice error message.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-06-02 15:26:19 -06:00
..
Agreement Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
EHoldings Bug 39367: Automatic changes 2025-04-23 09:35:14 +02:00
EUsage Bug 39823: Identify error messages based on code 2025-06-02 15:26:19 -06:00
Providers Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Agreement.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Agreements.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Document.pm Bug 36627: Fix typo "embeded" 2024-12-23 13:36:16 +01:00
Documents.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
License.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Licenses.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
UserRole.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
UserRoles.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00