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

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

Return to bug 22321