Bugzilla – Attachment 189793 Details for
Bug 34069
Add ability to restore a recently deleted borrower from deletedborrowers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34069: Prevent search if no search critrea
Bug-34069-Prevent-search-if-no-search-critrea.patch (text/plain), 1.52 KB, created by
Lucas Gass (lukeg)
on 2025-11-20 14:42:51 UTC
(
hide
)
Description:
Bug 34069: Prevent search if no search critrea
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-11-20 14:42:51 UTC
Size:
1.52 KB
patch
obsolete
>From 6aab8bea50a84a2fcff0e412cbdce6fdd84bf1e5 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 20 Nov 2025 13:56:44 +0000 >Subject: [PATCH] Bug 34069: Prevent search if no search critrea > >--- > .../prog/en/modules/tools/restore_deleted_borrowers.tt | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/restore_deleted_borrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/restore_deleted_borrowers.tt >index 08e7814683c..184647b4233 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/restore_deleted_borrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/restore_deleted_borrowers.tt >@@ -286,6 +286,15 @@ > [% INCLUDE 'datatables.inc' %] > <script> > $(document).ready(function() { >+ >+ $('#search_form').on('submit' , function(e) { >+ if ( $('#cardnumber').val() == '' && $('#borrowernumber').val() == '' && $('#firstname').val() == '' && $('#surname').val() == '' && $('#categorycode').val() == '' && $('#branchcode').val() == '' && $('#deleted_from').val() == '' && $('#deleted_to').val() == '' ) { >+ e.preventDefault(); >+ alert('Please fill out at least one search field.'); >+ return false; >+ } >+ }); >+ > // Select all checkbox functionality > $("#select_all").on("click", function() { > $("#deleted_patrons_table tbody input[type='checkbox']").prop('checked', this.checked); >-- >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 34069
:
188299
|
188302
|
188988
|
188989
|
188990
|
189027
|
189028
|
189029
|
189030
|
189037
|
189066
|
189067
|
189370
|
189371
|
189372
|
189373
|
189374
|
189375
|
189376
|
189377
|
189642
|
189645
|
189718
|
189773
|
189774
|
189779
|
189780
|
189781
|
189782
|
189783
|
189784
|
189785
|
189786
|
189787
|
189788
|
189789
|
189790
|
189791
|
189792
|
189793
|
189794
|
189795
|
189940
|
189941
|
189942
|
189943
|
189944
|
189945
|
189946
|
189947
|
189948
|
189949
|
189950
|
189951
|
189952
|
189953
|
189954