Bugzilla – Attachment 152142 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.67 KB, created by
Katrin Fischer
on 2023-06-08 10:22:10 UTC
(
hide
)
Description:
Bug 33581: Disable sample holiday if libraries are not selected
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-06-08 10:22:10 UTC
Size:
1.67 KB
patch
obsolete
>From d10d05526b035082015c0c52e64960cd3282df33 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. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../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 4462deb523..ffd3d36672 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.30.2
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