]> git.koha-community.org Git - koha.git/commit
Bug 22685: Use DBIx::Class relationships in Koha::Acq::Bookseller methods
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jan 2020 11:26:57 +0000 (12:26 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 27 Mar 2020 08:44:36 +0000 (08:44 +0000)
commitdcc93816914d467191481542f318c1c8ca415105
tree4f0dbddc2f16385ffa054f9d641a723e2d14e619
parent11a91d6e0cde1711c51a771a2aa38abf761f7114
Bug 22685: Use DBIx::Class relationships in Koha::Acq::Bookseller methods

To match PERL15 we change the behavior of Koha::Object methods to make
them use the DBIx::Class relationships.

Test plan:
- Create a vendor, basket and contact
- Edit the vendor => the contact must appears
- Go to the view of a vendor => you cannot delete the vendor, it has
a basket attached
- Create another vendor, without basket
- Go to the view of the vendor => You can delete it

Additionally:
 % prove t/db_dependent/Koha/Acquisition/Booksellers.t
must return green

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Acquisition/Bookseller.pm
t/db_dependent/Koha/Acquisition/Booksellers.t