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

(-)a/C4/Circulation.pm (-5 / +4 lines)
Lines 2588-2598 sub AddReturn { Link Here
2588
            }
2588
            }
2589
        });
2589
        });
2590
2590
2591
        Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue(
2591
        Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue( { biblio_ids => [ $item->biblionumber ] } )
2592
            {
2592
            if C4::Context->preference('RealTimeHoldsQueue')
2593
                biblio_ids => [ $item->biblionumber ]
2593
            && !defined $messages->{ResFound}
2594
            }
2594
            && C4::Context->interface eq 'intranet';
2595
        ) if C4::Context->preference('RealTimeHoldsQueue');
2596
    }
2595
    }
2597
2596
2598
    return ( $doreturn, $messages, $issue, ( $patron ? $patron->unblessed : {} ));
2597
    return ( $doreturn, $messages, $issue, ( $patron ? $patron->unblessed : {} ));
(-)a/circ/returns.pl (+8 lines)
Lines 265-270 if ( $op eq 'cud-dotransfer'){ Link Here
265
    $transfer->transit;
265
    $transfer->transit;
266
}
266
}
267
267
268
if ( $op eq 'cud-ignore_reserve' ) {
269
    my $ignored_item = $query->param('ignoreitem');
270
    my $item         = Koha::Items->find($ignored_item);
271
    Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue( { biblio_ids => [ $item->biblionumber ] } )
272
        if C4::Context->preference('RealTimeHoldsQueue');
273
274
}
275
268
if ($transit && $op eq 'cud-transfer') {
276
if ($transit && $op eq 'cud-transfer') {
269
    my $transfer = Koha::Item::Transfers->find($transit);
277
    my $transfer = Koha::Item::Transfers->find($transit);
270
    if ( $canceltransfer ) {
278
    if ( $canceltransfer ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-4 / +14 lines)
Lines 927-935 Link Here
927
                                                        </button>
927
                                                        </button>
928
                                                    [% END %]
928
                                                    [% END %]
929
929
930
                                                    <button type="button" data-bs-dismiss="modal" class="btn btn-default deny" accesskey="i">
930
                                                    <form method="post" action="returns.pl" class="confirm">
931
                                                        <i class="fa fa-times"></i> Ignore (I)
931
                                                        <input type="hidden" name="op" value="cud-ignore_reserve" />
932
                                                    </button>
932
                                                        <input type="hidden" name="ignoreitem" value="[% itemnumber | html %]" />
933
                                                        [% INCLUDE 'csrf-token.inc' %]
934
                                                        [% FOREACH inputloo IN inputloop %]
935
                                                            <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
936
                                                            <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
937
                                                            <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
938
                                                            <input type="hidden" name="nr-[% inputloo.counter | html %]" value="[% inputloo.not_returned | html %]" />
939
                                                        [% END %]
940
                                                        <button type="submit" data-bs-dismiss="modal" class="btn btn-default deny" accesskey="i">
941
                                                            <i class="fa fa-times"></i> Ignore (I)
942
                                                        </button>
943
                                                    </form>
933
                                                </div> <!-- /.modal-footer -->
944
                                                </div> <!-- /.modal-footer -->
934
                                            </form> <!-- /.confirm -->
945
                                            </form> <!-- /.confirm -->
935
                                        </div> <!-- /.modal-content -->
946
                                        </div> <!-- /.modal-content -->
936
- 

Return to bug 34596