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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 2353-2359 sub AddReturn { Link Here
2353
        location       => $item->location,
2353
        location       => $item->location,
2354
        borrowernumber => $borrowernumber,
2354
        borrowernumber => $borrowernumber,
2355
        ccode          => $item->ccode,
2355
        ccode          => $item->ccode,
2356
        categorycode   => $patron->categorycode,
2356
        ( $patron_unblessed ? ( categorycode   => $patron_unblessed->{categorycode} ) : () ),
2357
    });
2357
    });
2358
2358
2359
    # Send a check-in slip. # NOTE: borrower may be undef. Do not try to send messages then.
2359
    # Send a check-in slip. # NOTE: borrower may be undef. Do not try to send messages then.
(-)a/Koha/Recalls.pm (-9 / +11 lines)
Lines 164-177 sub add_recall { Link Here
164
164
165
        $item = Koha::Items->find( $itemnumber );
165
        $item = Koha::Items->find( $itemnumber );
166
        # add to statistics table
166
        # add to statistics table
167
        C4::Stats::UpdateStats({
167
        C4::Stats::UpdateStats(
168
            branch => C4::Context->userenv->{'branch'},
168
            {
169
            type => 'recall',
169
                branch         => C4::Context->userenv->{'branch'},
170
            itemnumber => $itemnumber,
170
                type           => 'recall',
171
            borrowernumber => $recall->patron_id,
171
                itemnumber     => $itemnumber,
172
            itemtype => $item->effective_itemtype,
172
                borrowernumber => $recall->patron_id,
173
            ccode => $item->ccode,
173
                itemtype       => $item->effective_itemtype,
174
        });
174
                ccode          => $item->ccode,
175
                categorycode   => $checkout->patron->categorycode
176
            }
177
        );
175
178
176
        # add action log
179
        # add action log
177
        C4::Log::logaction( 'RECALLS', 'CREATE', $recall->id, "Recall requested by borrower #" . $recall->patron_id, $interface ) if ( C4::Context->preference('RecallsLog') );
180
        C4::Log::logaction( 'RECALLS', 'CREATE', $recall->id, "Recall requested by borrower #" . $recall->patron_id, $interface ) if ( C4::Context->preference('RecallsLog') );
178
- 

Return to bug 7021