https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32923
--- Comment #21 from Nick Clemens <n...@bywatersolutions.com> --- Created attachment 147295 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=147295&action=edit Bug 32923: Fix x-koha-embed from EHoldings/*/* We were validating twice the input and it broke the x-koha-embed header. I don't really know what's happening, but here is how to recreate the problem: 1. Edit Koha/REST/V1/ERM/EHoldings/Packages/EBSCO.pm 2. Add the following lines in Koha/REST/V1/ERM/EHoldings/Packages/EBSCO.pm, in the list method warn $c->req->headers->header('x-koha-embed'); 3. curl -v -s -u koha:koha --request GET http://kohadev-intra.mydnsname.org:8081/api/v1/erm/eholdings/ebsco/packages --header "x-koha-embed: resources+count,vendor" => There is no vendor in the response => The warn displays "resources+count" If you apply this patch you will notice that "vendor" is part of the response and the warn displays "resources+count, vendor" Signed-off-by: Pedro Amorim <pedro.amo...@ptfs-europe.com> Signed-off-by: Nick Clemens <n...@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/