View | Details | Raw Unified | Return to bug 22321
Collapse All | Expand All

(-)a/Koha/Illrequest.pm (-3 / +2 lines)
Lines 1637-1643 sub store { Link Here
1637
    my %updated_columns = $self->_result->get_dirty_columns;
1637
    my %updated_columns = $self->_result->get_dirty_columns;
1638
1638
1639
    my @holds;
1639
    my @holds;
1640
    if( defined $updated_columns{'borrowernumber'} and
1640
    if( $self->in_storage and defined $updated_columns{'borrowernumber'} and
1641
        Koha::Patrons->find( $updated_columns{'borrowernumber'} ) )
1641
        Koha::Patrons->find( $updated_columns{'borrowernumber'} ) )
1642
    {
1642
    {
1643
        # borrowernumber has changed
1643
        # borrowernumber has changed
Lines 1645-1651 sub store { Link Here
1645
        @holds = Koha::Holds->search( {
1645
        @holds = Koha::Holds->search( {
1646
            borrowernumber => $old_illreq->borrowernumber,
1646
            borrowernumber => $old_illreq->borrowernumber,
1647
            biblionumber   => $self->biblio_id,
1647
            biblionumber   => $self->biblio_id,
1648
        } )->as_list;
1648
        } )->as_list if $old_illreq;
1649
    }
1649
    }
1650
1650
1651
    my $ret = $self->SUPER::store;
1651
    my $ret = $self->SUPER::store;
1652
- 

Return to bug 22321