[Koha-bugs] [Bug 22685] Koha::Acquisition::Bookseller methods must return Koha::Objects using the DBIx::Class relationships

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 30 12:39:08 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22685

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 98157
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=98157&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list