From 0171a5f3c4924f313c3f7065bfe7b00754361a3d Mon Sep 17 00:00:00 2001 From: Arthur Suzuki Date: Wed, 27 Mar 2019 15:49:04 +0100 Subject: [PATCH] Bug 22597 : Remove "more_subfields_xml" from GetPatronInfo response Test plan 1/ Set an item with some xml data in more_subfields_xml 2/ Issue this item to a borrower 3/ Query the webservice with GetPatronInfo methods and show_loans=1 params 4/ Check no tags are returned in the xml response from the webservice --- C4/ILSDI/Services.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index a1e23cf5de..fa8fc685e2 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -470,6 +470,7 @@ sub GetPatronInfo { while ( my $c = $pending_checkouts->next ) { # FIXME We should only retrieve what is needed in the template my $issue = $c->unblessed_all_relateds; + delete $issue->{'more_subfields_xml'}; push @checkouts, $issue } $borrower->{'loans'}->{'loan'} = \@checkouts; -- 2.11.0