[Koha-bugs] [Bug 22321] Make it possible to edit illrequests.borrowernumber
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Feb 15 11:43:16 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22321
--- Comment #5 from Magnus Enger <magnus at libriotech.no> ---
After applying these patches I get this when I try to create a new illrequest:
Can't call method "borrowernumber" on an undefined value at
/home/me/kohaclone/Koha/Illrequest.pm line 1643.
1637 my @holds;
1638 if( defined $updated_columns{'borrowernumber'} and
1639 Koha::Patrons->find( $updated_columns{'borrowernumber'} ) )
1640 {
1641 # borrowernumber has changed
1642 my $old_illreq = $self->get_from_storage;
1643 @holds = Koha::Holds->search( {
1644 borrowernumber => $old_illreq->borrowernumber,
1645 biblionumber => $self->biblio_id,
1646 } )->as_list;
1647 }
Not sure what the problem is, but could it be that this works for existing
requests, but for new ones there just isn't an $old_illreq to get the
borrowernumber from?
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list