Bugzilla – Attachment 187479 Details for
Bug 32176
Correctly display patrons when selected after autocomplete (was js/patron-autocomplete.js need another option)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32176: Fix list transfer
Bug-32176-Fix-list-transfer.patch (text/plain), 2.64 KB, created by
Jonathan Druart
on 2025-10-06 14:17:59 UTC
(
hide
)
Description:
Bug 32176: Fix list transfer
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-10-06 14:17:59 UTC
Size:
2.64 KB
patch
obsolete
>From 8c47c2e6f491ebf35cca52b0358ed0ea75dc2fc2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 6 Oct 2025 16:10:21 +0200 >Subject: [PATCH] Bug 32176: Fix list transfer > >--- > .../prog/en/modules/virtualshelves/shelves.tt | 36 ++++++++++--------- > 1 file changed, 20 insertions(+), 16 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >index cf5f68b3e19..f002d0abf31 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >@@ -219,7 +219,6 @@ > <div> > <label for="find_patron">New owner: </label> > <span id="new_owner_name"></span> >- <input type="hidden" id="new_owner" name="new_owner" value="" /> > </div> > > <br /> >@@ -958,25 +957,30 @@ > }); > > [% END %] >+ </script> >+ [% IF op == 'transfer' %] >+ <script> >+ $(document).ready(function () { >+ patron_autocomplete($("#find_patron"), { >+ "on-select-add-to": { >+ container: $("#new_owner_name"), >+ input_name: "new_owner", >+ }, >+ "on-select-callback": function (event, ui) { >+ $("#find_patron").val("").focus(); >+ return false; >+ }, >+ }); > >- [% IF op == 'transfer' %] >- $(document).ready(function() { >- patron_autocomplete( $("#find_patron"), { 'on-select-callback': function( event, ui ) { >- $('#new_owner_name').html( ui.item.firstname + " " + ui.item.surname ); >- $('#new_owner').val( ui.item.patron_id ); >- $('#find_patron').val('').focus(); >- return false; >- }}); >- >- $('#transferform').submit(function() { >- if( $('#new_owner').val() == '' ) { >- alert( _("Please select a new owner first") ); >+ $("#transferform").submit(function () { >+ if (!$('input[name="new_owner"]').val()) { >+ alert(_("Please select a new owner first")); > return false; > } > return true; > }); >- }); >- [% END %] >- </script> >+ }); >+ </script> >+ [% END %] > [% END %] > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.34.1
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 32176
:
187477
|
187478
|
187479
|
187728
|
187729
|
187730
|
187841
|
187842