Koha-clms/Koha/Account
Jonathan Druart 6c8089b40f Bug 22006: Handle undefined itemnumber for Koha::Account::Line->item
If there is no item linked to an account line, the ->item method should return undef.
Without this patch it explodes with:
Carp::croak('DBIC result _type  isn\'t of the _type Item') called at /home/vagrant/kohaclone/Koha/Object.pm line 102

Exists since the introduction of this method by bug 12001

Reported on bug 19489 comment 18.

Test plan:
  prove t/db_dependent/Koha/Account/Lines.t
must return green

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-01-18 20:32:54 +00:00
..
Line.pm Bug 22006: Handle undefined itemnumber for Koha::Account::Line->item 2019-01-18 20:32:54 +00:00
Lines.pm Bug 21673: (QA follow-up) Fix typo and remove unused library 2018-11-06 16:44:33 +00:00
Offset.pm Bug 2696: (QA follow-up) Fix POD, results sorting, permissions 2018-04-24 14:01:47 -03:00
Offsets.pm Bug 13098: Fix POD for Koha::Account::Offsets::total 2018-10-31 13:13:38 +00:00