From 7eab40524b94b0fbd64d6fffeeb60818e76e0228 Mon Sep 17 00:00:00 2001 From: Lari Strand Date: Tue, 21 Jan 2025 10:22:51 +0200 Subject: [PATCH] Bug 38375: Splitting SIP2SortBinMapping syspref does not support all operating systems' line endings Signed-off-by: Martin Renvoize --- C4/SIP/ILS/Transaction/Checkin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/ILS/Transaction/Checkin.pm b/C4/SIP/ILS/Transaction/Checkin.pm index 4c7d84a6d94..ad02ad78970 100644 --- a/C4/SIP/ILS/Transaction/Checkin.pm +++ b/C4/SIP/ILS/Transaction/Checkin.pm @@ -262,7 +262,7 @@ sub _get_sort_bin { # Get the mapping and split on newlines my $raw_map = C4::Context->preference('SIP2SortBinMapping'); return unless $raw_map; - @lines = split /\r\n/, $raw_map; + @lines = split /[\r\n]+/, $raw_map; } # Iterate over the mapping. The first hit wins. -- 2.48.1