]> git.koha-community.org Git - koha.git/commit
Bug 33974: (follow-up) biblionumber column needs special handling
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Jul 2023 16:30:56 +0000 (13:30 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 17 Jul 2023 15:26:38 +0000 (16:26 +0100)
commit35d1f812778dcd8d538f1781b224d41a09be3e79
treecb891cd3bea8f72c82d1da7544faf2947e5938d8
parent955d3a53e7c1c3a29c82d7fb8754875559c05c32
Bug 33974: (follow-up) biblionumber column needs special handling

This patch makes a particular use case be handled correctly: i.e. no
context is passed (e.g. 'biblio' explicitly) and the query is done
against the `biblio_id` attribute. This results in the following DBIC
error:

[ERROR] GET /api/v1/biblios: unhandled exception (DBIx::Class::Exception)<<DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Column 'biblionumber' in where clause is ambiguous at /kohadevbox/koha/Koha/Objects.pm line 394>>

With this patch, this is no longuer the case :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit ba80c71e63549e60fcdd5666bd2484b75e5a174d)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Biblios.pm