https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19935
--- Comment #31 from Josef Moravec <[email protected]> --- Comment on attachment 72755 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72755 Bug 19935: Replace GetPendingIssues - Discharges Review of attachment 72755: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19935&attachment=72755) ----------------------------------------------------------------- ::: Koha/Patron/Discharge.pm @@ +9,4 @@ > > use Koha::Database; > use Koha::DateUtils qw( dt_from_string output_pref ); > +use Koha::Checkouts; should remain Koha::Patrons @@ +35,5 @@ > > + my $patron = Koha::Patrons->find( $params->{borrowernumber} ); > + return unless $patron; > + > + my $has_pending_checkouts = $patron->pending_checkouts->count; shouldn't it be this? As said in commit message? $patron->checkouts->count; -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
