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

(-)a/C4/Circulation.pm (-3 / +2 lines)
Lines 2110-2116 sub AddReturn { Link Here
2110
                (!defined $item->location && $update_loc_rules->{_ALL_} ne "")
2110
                (!defined $item->location && $update_loc_rules->{_ALL_} ne "")
2111
               ) {
2111
               ) {
2112
                $messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{_ALL_} };
2112
                $messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{_ALL_} };
2113
                $item->location($update_loc_rules->{_ALL_})->store({ skip_record_index => 1, skip_holds_queue => 1});
2113
                $item->location($update_loc_rules->{_ALL_})->store({ log_action => 0, skip_record_index => 1, skip_holds_queue => 1});
2114
            }
2114
            }
2115
        }
2115
        }
2116
        else {
2116
        else {
Lines 2119-2125 sub AddReturn { Link Here
2119
                if ( $update_loc_rules->{$key} eq '_BLANK_') { $update_loc_rules->{$key} = '' ;}
2119
                if ( $update_loc_rules->{$key} eq '_BLANK_') { $update_loc_rules->{$key} = '' ;}
2120
                if ( ($item->location eq $key && $item->location ne $update_loc_rules->{$key}) || ($key eq '_BLANK_' && $item->location eq '' && $update_loc_rules->{$key} ne '') ) {
2120
                if ( ($item->location eq $key && $item->location ne $update_loc_rules->{$key}) || ($key eq '_BLANK_' && $item->location eq '' && $update_loc_rules->{$key} ne '') ) {
2121
                    $messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{$key} };
2121
                    $messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{$key} };
2122
                    $item->location($update_loc_rules->{$key})->store({ skip_record_index => 1, skip_holds_queue => 1});
2122
                    $item->location($update_loc_rules->{$key})->store({ log_action => 0, skip_record_index => 1, skip_holds_queue => 1});
2123
                    last;
2123
                    last;
2124
                }
2124
                }
2125
            }
2125
            }
2126
- 

Return to bug 30668