Lines 1761-1767
sub store {
Link Here
|
1761 |
my %updated_columns = $self->_result->get_dirty_columns; |
1761 |
my %updated_columns = $self->_result->get_dirty_columns; |
1762 |
|
1762 |
|
1763 |
my @holds; |
1763 |
my @holds; |
1764 |
if( defined $updated_columns{'borrowernumber'} and |
1764 |
if( $self->in_storage and defined $updated_columns{'borrowernumber'} and |
1765 |
Koha::Patrons->find( $updated_columns{'borrowernumber'} ) ) |
1765 |
Koha::Patrons->find( $updated_columns{'borrowernumber'} ) ) |
1766 |
{ |
1766 |
{ |
1767 |
# borrowernumber has changed |
1767 |
# borrowernumber has changed |
Lines 1769-1775
sub store {
Link Here
|
1769 |
@holds = Koha::Holds->search( { |
1769 |
@holds = Koha::Holds->search( { |
1770 |
borrowernumber => $old_illreq->borrowernumber, |
1770 |
borrowernumber => $old_illreq->borrowernumber, |
1771 |
biblionumber => $self->biblio_id, |
1771 |
biblionumber => $self->biblio_id, |
1772 |
} )->as_list; |
1772 |
} )->as_list if $old_illreq; |
1773 |
} |
1773 |
} |
1774 |
|
1774 |
|
1775 |
my $ret = $self->SUPER::store; |
1775 |
my $ret = $self->SUPER::store; |
1776 |
- |
|
|