Bugzilla – Attachment 133054 Details for
Bug 30376
Unable to save item if field date acquired is set mandatory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30376: [ALTERNATIVE PATCH] Fix missing mandatory date acquired error on item save
0001-Bug-30376-ALTERNATIVE-PATCH-Fix-missing-mandatory-da.patch (text/plain), 1.60 KB, created by
Johanna Räisä
on 2022-04-07 05:53:41 UTC
(
hide
)
Description:
Bug 30376: [ALTERNATIVE PATCH] Fix missing mandatory date acquired error on item save
Filename:
MIME Type:
Creator:
Johanna Räisä
Created:
2022-04-07 05:53:41 UTC
Size:
1.60 KB
patch
obsolete
>From c7f0d61eacc294fc1df494f09a96758c41129480 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 6 Apr 2022 17:00:36 +0200 >Subject: [PATCH] Bug 30376: [ALTERNATIVE PATCH] Fix missing mandatory date > acquired error on item save > >Signed-off-by: Johanna Raisa <johanna.raisa@gmail.com> >--- > koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >index 5ba1e76714..16cf857496 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >@@ -566,6 +566,9 @@ function CheckMandatorySubfields(p){ > var total = 0; > $(p).find(".subfield_line input[name='mandatory'][value='1']").each(function(){ > var editor = $(this).siblings(".input_marceditor"); >+ if ( !editor.length ) { // Deal with date inputs >+ editor = $(this).siblings(".flatpickr_wrapper").find(".input_marceditor"); >+ } > if (!editor.val()) { > editor.addClass("missing"); > total++; >@@ -578,6 +581,9 @@ function CheckImportantSubfields(p){ > var total = 0; > $(p).find(".subfield_line input[name='important'][value='1']").each(function(i){ > var editor = $(this).siblings(".input_marceditor"); >+ if ( !editor.length ) { // Deal with date inputs >+ editor = $(this).siblings(".flatpickr_wrapper").find(".input_marceditor"); >+ } > if (!editor.val()) { > editor.addClass("missing"); > total++; >-- >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 30376
:
132317
|
132985
|
133043
|
133054
|
133134