Koha-clms/C4/ClassSplitRoutine
Martin Renvoize 6daa66b589
Bug 30233: (follow-up) Log a warning when _apply_substitution discards a bad pattern
When eval { qr/$pattern/ } fails (e.g. the admin-configured s/// contains
an invalid regex), _apply_substitution previously returned silently with no
indication of why the rule was skipped. Add a Koha::Logger warn so the
failure appears in the log and is diagnosable without a debugger.

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 79f23d017a5d6f611f37308cf6cca609a3e1b366)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-08-10 08:18:02 -06:00
..
Dewey.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Generic.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
LCC.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
RegEx.pm Bug 30233: (follow-up) Log a warning when _apply_substitution discards a bad pattern 2026-08-10 08:18:02 -06:00