Bugzilla – Attachment 195164 Details for
Bug 41568
Tidy kohaTable block - circ
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41568: Tidy kohaTable - circ/branchtransfers.tt - fix conflict with 41134
385e75e.patch (text/plain), 1.93 KB, created by
Jonathan Druart
on 2026-03-12 10:33:35 UTC
(
hide
)
Description:
Bug 41568: Tidy kohaTable - circ/branchtransfers.tt - fix conflict with 41134
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-03-12 10:33:35 UTC
Size:
1.93 KB
patch
obsolete
>From 385e75e976528d45e5f6ade0f209a4f393aa7af7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 12 Mar 2026 11:33:03 +0100 >Subject: [PATCH] Bug 41568: Tidy kohaTable - circ/branchtransfers.tt - fix > conflict with 41134 > >--- > .../prog/en/modules/circ/branchtransfers.tt | 17 ++++++++++------- > 1 file changed, 10 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >index 1d5c189bbce..091efeb96f5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >@@ -303,16 +303,19 @@ > [% INCLUDE 'select2.inc' %] > <script> > var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'transfers', 'transferstable', 'json' ) | $raw %] >- $(document).ready( function() { >- $(".printtransferslip").on("click", function(e){ >+ var found = [% found ? 1 : 0 | html %]; >+ </script> >+ <script> >+ $(document).ready(function () { >+ $(".printtransferslip").on("click", function (e) { > e.preventDefault(); >- var itemnumber = $(this).attr('data-itemnumber'); >- var to_branch = $(this).attr('data-tobranch'); >+ var itemnumber = $(this).attr("data-itemnumber"); >+ var to_branch = $(this).attr("data-tobranch"); > window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch); > }); >- [% IF ( found ) %] >- $("#transfer_confirm").modal('show'); >- [% END %] >+ if (found) { >+ $("#transfer_confirm").modal("show"); >+ } > var transfers_table = $("#transferstable").kohaTable( > { > searching: false, >-- >2.43.0 >
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 41568
:
191111
|
191112
|
191113
|
191114
|
191115
|
191116
|
191117
|
191118
|
191119
|
191120
|
191121
|
191122
|
191123
|
191375
|
191376
|
191377
|
191378
|
191379
|
191380
|
191381
|
191382
|
191383
|
191384
|
191385
|
191386
|
191387
|
191388
|
192356
|
192357
|
192358
|
192359
|
192360
|
192361
|
192362
|
192363
|
192364
|
192365
|
192366
|
192367
|
192368
|
192369
|
192637
|
192638
|
192639
|
192640
|
192641
|
192642
|
192643
|
192644
|
192645
|
192646
|
192647
|
192648
|
192649
|
192650
|
194652
|
194653
|
194654
|
194655
|
194656
|
194657
|
194658
|
194659
|
194660
|
194661
|
194662
|
194663
|
194664
|
194665
| 195164