Bugzilla – Attachment 152083 Details for
Bug 33581
Error in web installer concerning sample holidays and patrons requiring sample libraries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33581: Disable sample holiday if libraries are not selected
Bug-33581-Disable-sample-holiday-if-libraries-are-.patch (text/plain), 1.61 KB, created by
Jonathan Druart
on 2023-06-07 09:32:57 UTC
(
hide
)
Description:
Bug 33581: Disable sample holiday if libraries are not selected
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-06-07 09:32:57 UTC
Size:
1.61 KB
patch
obsolete
>From 54550193609bbfbc29506167cef9f7cd5f40a187 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 7 Jun 2023 11:31:20 +0200 >Subject: [PATCH] Bug 33581: Disable sample holiday if libraries are not > selected > >If libraries are not selected we should not try to insert holidays, or >the installer will fail with a missing FK. > >This patch simply disable and uncheck the checkbox when libraries are >not going to be inserted. >--- > .../intranet-tmpl/prog/en/modules/installer/step3.tt | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >index 4462deb5235..ffd3d36672d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >@@ -463,6 +463,15 @@ > $( container ).find("input").prop("checked", state); > $( container ).find(".selectall,.deselectall").toggle(); > }); >+ function update_sample_libraries_holidays(){ >+ let checked = $("#sample_libraries").prop("checked"); >+ $("#sample_libraries_holidays").prop("disabled", !checked); >+ if (!checked) { >+ $("#sample_libraries_holidays").prop("checked", false); >+ } >+ }; >+ $("#sample_libraries").on("change", update_sample_libraries_holidays); >+ $("#sample_libraries").change(); > }); > </script> > [% END %] >-- >2.25.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 33581
:
152083
|
152142
|
152143
|
152188
|
152189
|
153307
|
153308