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

(-)a/C4/Circulation.pm (-3 / +6 lines)
Lines 2228-2234 sub AddReturn { Link Here
2228
                foreach my $notloan_rule_key (keys %{ $rules->{$item->itype}} ) {
2228
                foreach my $notloan_rule_key (keys %{ $rules->{$item->itype}} ) {
2229
                    if ( $item->notforloan eq $notloan_rule_key ) {
2229
                    if ( $item->notforloan eq $notloan_rule_key ) {
2230
                        $messages->{'NotForLoanStatusUpdated'} = { from => $item->notforloan, to => $rules->{$item->itype}->{$notloan_rule_key} };
2230
                        $messages->{'NotForLoanStatusUpdated'} = { from => $item->notforloan, to => $rules->{$item->itype}->{$notloan_rule_key} };
2231
                        $item->notforloan($rules->{$item->itype}->{$notloan_rule_key})->store({ log_action => 0, skip_record_index => 1, skip_holds_queue => 1 });
2231
                        $item->notforloan( $rules->{ $item->itype }->{$notloan_rule_key} )
2232
                            ->store( { log_action => 0, skip_record_index => 1, skip_holds_queue => 1 } )
2233
                            unless $rules->{ $item->itype }->{$notloan_rule_key} eq 'ONLYMESSAGE';
2232
                        last;
2234
                        last;
2233
                    }
2235
                    }
2234
                }
2236
                }
Lines 2236-2242 sub AddReturn { Link Here
2236
                foreach my $notloan_rule_key (keys %{ $rules->{'_ALL_'}} ) {
2238
                foreach my $notloan_rule_key (keys %{ $rules->{'_ALL_'}} ) {
2237
                    if ( $item->notforloan eq $notloan_rule_key ) {
2239
                    if ( $item->notforloan eq $notloan_rule_key ) {
2238
                        $messages->{'NotForLoanStatusUpdated'} = { from => $item->notforloan, to => $rules->{'_ALL_'}->{$notloan_rule_key} };
2240
                        $messages->{'NotForLoanStatusUpdated'} = { from => $item->notforloan, to => $rules->{'_ALL_'}->{$notloan_rule_key} };
2239
                        $item->notforloan($rules->{'_ALL_'}->{$notloan_rule_key})->store({ log_action => 0, skip_record_index => 1, skip_holds_queue => 1 });
2241
                        $item->notforloan( $rules->{'_ALL_'}->{$notloan_rule_key} )
2242
                            ->store( { log_action => 0, skip_record_index => 1, skip_holds_queue => 1 } )
2243
                            unless $rules->{'_ALL_'}->{$notloan_rule_key} eq 'ONLYMESSAGE';
2240
                        last;
2244
                        last;
2241
                    }
2245
                    }
2242
                }
2246
                }
2243
- 

Return to bug 35692