Bugzilla – Attachment 189688 Details for
Bug 20844
Reset a hold when it is missing after allocation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20844: (follow-up) Address moredetail.tt as well
Bug-20844-follow-up-Address-moredetailtt-as-well.patch (text/plain), 3.92 KB, created by
Nick Clemens (kidclamp)
on 2025-11-18 20:19:32 UTC
(
hide
)
Description:
Bug 20844: (follow-up) Address moredetail.tt as well
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-11-18 20:19:32 UTC
Size:
3.92 KB
patch
obsolete
>From 8bcb0465e44e205cb9bb318e5d5fefae518177a8 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 18 Nov 2025 20:18:30 +0000 >Subject: [PATCH] Bug 20844: (follow-up) Address moredetail.tt as well > >--- > catalogue/updateitem.pl | 2 +- > .../prog/en/modules/catalogue/moredetail.tt | 32 ++++++++++++++----- > 2 files changed, 25 insertions(+), 9 deletions(-) > >diff --git a/catalogue/updateitem.pl b/catalogue/updateitem.pl >index 3f3da5371e4..4d7cc5c456a 100755 >--- a/catalogue/updateitem.pl >+++ b/catalogue/updateitem.pl >@@ -45,7 +45,7 @@ my $redirecturl = $cgi->param('redirecturl'); > if ( $op eq "cud-cancelhold" ) { > LostItem( $itemnumber, 'moredetail', 0, { cancel_reserve => 1 } ); > } elsif ( $op eq "cud-reverthold" ) { >- LostItem( $itemnumber, 'moredetail', 0, { cancel_reserve => undef } ); >+ LostItem( $itemnumber, 'moredetail', 0, { cancel_reserve => 0 } ); > } > > if ( defined $redirecturl ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >index a51efd95276..41994b4ef47 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -163,15 +163,31 @@ > </div> > [% END %] > <div class="listgroup"> >- [% IF ITEM_DAT.itemlost and ITEM_DAT.waiting_holds > 0 %] >+ [% IF ITEM_DAT.itemlost and ITEM_DAT.waiting_holds > 0 %] > <div class="dialog alert"> >- This item has a waiting item-level hold on it, and has been marked as lost.<br> >- <form action="updateitem.pl" method="post" class="inline"> >- <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]"> >- <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]"> >- <button type="submit" name="reverthold" value="1" class="btn btn-default"><i class="fa fa-undo"></i> Revert waiting status</button> >- <button type="submit" name="cancelhold" value="1" class="btn btn-default"><i class="fa fa-times"></i> Cancel hold</button> >- </form> >+ This item has a waiting item-level hold on it, and has been marked as lost.<br /> >+ <a >+ class="btn btn-default btn-xs submit-form-link" >+ href="#" >+ data-itemnumber="[% ITEM_DAT.itemnumber | html %]" >+ data-biblionumber="[% ITEM_DAT.biblionumber | html %]" >+ data-method="post" >+ data-op="cud-reverthold" >+ data-action="updateitem.pl" >+ > >+ Revert waiting status >+ </a> >+ <a >+ class="btn btn-default btn-xs submit-form-link" >+ href="#" >+ data-itemnumber="[% ITEM_DAT.itemnumber | html %]" >+ data-biblionumber="[% ITEM_DAT.biblionumber | html %]" >+ data-method="post" >+ data-op="cud-cancelhold" >+ data-action="updateitem.pl" >+ > >+ Cancel hold >+ </a> > </div> > [% END %] > <h4> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20844
:
79267
|
80760
|
80761
|
80890
|
80891
|
81045
|
81531
|
81623
|
81624
|
81640
|
81697
|
81698
|
81710
|
81711
|
81712
|
102334
|
102335
|
102336
|
113208
|
113209
|
113210
|
118264
|
118265
|
118266
|
125437
|
125438
|
125439
|
140214
|
140215
|
140216
|
150348
|
150349
|
150350
|
150480
|
159062
|
159063
|
159064
|
159065
|
159111
|
170263
|
170264
|
189623
|
189648
|
189688
|
189973
|
191958
|
191959
|
191960
|
191966
|
191981
|
191982
|
191983
|
191984