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

(-)a/Koha/Booking.pm (-3 / +4 lines)
Lines 160-171 sub store { Link Here
160
            {
160
            {
161
                my $patron         = $self->patron;
161
                my $patron         = $self->patron;
162
                my $pickup_library = $self->pickup_library;
162
                my $pickup_library = $self->pickup_library;
163
                my $branch = C4::Context->userenv->{'branch'};
163
164
164
                my $letter = C4::Letters::GetPreparedLetter(
165
                my $letter = C4::Letters::GetPreparedLetter(
165
                    module                 => 'bookings',
166
                    module                 => 'bookings',
166
                    letter_code            => 'BOOKING_MODIFICATION',
167
                    letter_code            => 'BOOKING_MODIFICATION',
167
                    message_transport_type => 'email',
168
                    message_transport_type => 'email',
168
                    branchcode             => $pickup_library->branchcode,
169
                    branchcode             => $branch,
169
                    lang                   => $patron->lang,
170
                    lang                   => $patron->lang,
170
                    objects                => {
171
                    objects                => {
171
                        old_booking => $old_booking,
172
                        old_booking => $old_booking,
Lines 286-291 sub to_api_mapping { Link Here
286
sub delete {
287
sub delete {
287
    my ($self) = @_;
288
    my ($self) = @_;
288
289
290
    my $branch = C4::Context->userenv->{'branch'};
289
    my $patron         = $self->patron;
291
    my $patron         = $self->patron;
290
    my $pickup_library = $self->pickup_library;
292
    my $pickup_library = $self->pickup_library;
291
293
Lines 293-299 sub delete { Link Here
293
        module                 => 'bookings',
295
        module                 => 'bookings',
294
        letter_code            => 'BOOKING_CANCELLATION',
296
        letter_code            => 'BOOKING_CANCELLATION',
295
        message_transport_type => 'email',
297
        message_transport_type => 'email',
296
        branchcode             => $pickup_library->branchcode,
298
        branchcode             => $branch,
297
        lang                   => $patron->lang,
299
        lang                   => $patron->lang,
298
        objects                => { booking => $self }
300
        objects                => { booking => $self }
299
    );
301
    );
300
- 

Return to bug 37204