From 1d6e23b6edd34f927dabd811d486f2f158d23b05 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 --- 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 0ddbaa8f21..65609c74f1 100644 --- a/C4/SIP/ILS/Transaction/Checkin.pm +++ b/C4/SIP/ILS/Transaction/Checkin.pm @@ -261,7 +261,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.34.1