From 42bf3db191faddcde100ad3df99030c9f4a949bb Mon Sep 17 00:00:00 2001 From: Per Larsson Date: Wed, 18 Sep 2019 10:50:37 +0200 Subject: [PATCH] Bug 23548: Set AQ to empty when item not exist Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 2256a8532335f763346f13698cb840dd97ecafa3) Signed-off-by: Fridolin Somers (cherry picked from commit 43022c87985f0d90f75e0a2d180e1011fc14b030) Signed-off-by: Matt Blenkinsop --- C4/SIP/Sip/MsgType.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm index 6e1e284976..0ed05cff64 100644 --- a/C4/SIP/Sip/MsgType.pm +++ b/C4/SIP/Sip/MsgType.pm @@ -704,6 +704,8 @@ sub handle_checkin { $resp .= add_field( FID_PERM_LOCN, $item->permanent_location, $server ); $resp .= maybe_add( FID_TITLE_ID, $item->title_id, $server ); $resp .= $item->build_additional_item_fields_string( $server ); + } else { + $resp .= add_field( FID_PERM_LOCN, "", $server ); } if ( $protocol_version >= 2 ) { -- 2.39.5