Bug 35293: (follow-up) Handle all rules as well
Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
a0f83767a8
commit
26e7d0c9b3
1 changed files with 6 additions and 2 deletions
|
@ -2228,7 +2228,9 @@ sub AddReturn {
|
|||
foreach my $notloan_rule_key (keys %{ $rules->{$item->itype}} ) {
|
||||
if ( $item->notforloan eq $notloan_rule_key ) {
|
||||
$messages->{'NotForLoanStatusUpdated'} = { from => $item->notforloan, to => $rules->{$item->itype}->{$notloan_rule_key} };
|
||||
$item->notforloan($rules->{$item->itype}->{$notloan_rule_key})->store({ log_action => 0, skip_record_index => 1, skip_holds_queue => 1 }) unless $rules->{$item->itype}->{$notloan_rule_key} eq 'ONLYMESSAGE';
|
||||
$item->notforloan( $rules->{ $item->itype }->{$notloan_rule_key} )
|
||||
->store( { log_action => 0, skip_record_index => 1, skip_holds_queue => 1 } )
|
||||
unless $rules->{ $item->itype }->{$notloan_rule_key} eq 'ONLYMESSAGE';
|
||||
last;
|
||||
}
|
||||
}
|
||||
|
@ -2236,7 +2238,9 @@ sub AddReturn {
|
|||
foreach my $notloan_rule_key (keys %{ $rules->{'_ALL_'}} ) {
|
||||
if ( $item->notforloan eq $notloan_rule_key ) {
|
||||
$messages->{'NotForLoanStatusUpdated'} = { from => $item->notforloan, to => $rules->{'_ALL_'}->{$notloan_rule_key} };
|
||||
$item->notforloan($rules->{'_ALL_'}->{$notloan_rule_key})->store({ log_action => 0, skip_record_index => 1, skip_holds_queue => 1 });
|
||||
$item->notforloan( $rules->{'_ALL_'}->{$notloan_rule_key} )
|
||||
->store( { log_action => 0, skip_record_index => 1, skip_holds_queue => 1 } )
|
||||
unless $rules->{ '_ALL_' }->{$notloan_rule_key} eq 'ONLYMESSAGE';
|
||||
last;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue