Looks like we lost a few lines in the backport of bug 35942 into Koha: https://git.koha-community.org/Koha-community/Koha/commit/9bdab108e22768b018b017ed7c0e0016270f2570 This does not match the patch for 23.05.x on the bug: https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162332&action=diff Likely a rebase issue