If QueryAutoTruncate is set to automatic then get_components_query is fetching too many component parts. Component parts are linked to host if rcn begins with the same value.
Created attachment 138886 [details] [review] Bug 31326: Koha::Biblio->get_components_query fetches too many component parts This patch adds double quotes to rcn and cni when searching component parts with get_components_query. Test plan: 1) Apply the patch 2) prove Koha/t/db_dependent/Koha/Biblio.t
Hi Johanna, could you please rebase?
Created attachment 144398 [details] [review] Bug 31326: Koha::Biblio->get_components_query fetches too many component parts This patch adds double quotes to rcn and cni when searching component parts with get_components_query. Test plan: 1) Apply the patch 2) prove Koha/t/db_dependent/Koha/Biblio.t Sponsored-by: Koha-Suomi Oy
Created attachment 144416 [details] [review] Bug 31326: Koha::Biblio->get_components_query fetches too many component parts This patch adds double quotes to rcn and cni when searching component parts with get_components_query. Test plan: 1) Apply the patch 2) prove Koha/t/db_dependent/Koha/Biblio.t Sponsored-by: Koha-Suomi Oy Signed-off-by: David Nind <david@davidnind.com>
Created attachment 145513 [details] [review] Bug 31326: Koha::Biblio->get_components_query fetches too many component parts This patch adds double quotes to rcn and cni when searching component parts with get_components_query. Test plan: 1) Apply the patch 2) prove Koha/t/db_dependent/Koha/Biblio.t Sponsored-by: Koha-Suomi Oy Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Pushed to master for 23.05. Nice work everyone, thanks!
Nice work, thanks everyone! Pushed to 22.11.x for the next release.