Bugzilla – Attachment 170446 Details for
Bug 36882
Flatpickr doesn't work for repeatable date patron attributes in overdues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36882: Reapply flatpickr to cloned entry
Bug-36882-Reapply-flatpickr-to-cloned-entry.patch (text/plain), 1.60 KB, created by
Marcel de Rooy
on 2024-08-16 09:08:35 UTC
(
hide
)
Description:
Bug 36882: Reapply flatpickr to cloned entry
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-08-16 09:08:35 UTC
Size:
1.60 KB
patch
obsolete
>From 89066a63438715dd6ac2aa52a837552853cd8615 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 16 May 2024 11:46:08 +0000 >Subject: [PATCH] Bug 36882: Reapply flatpickr to cloned entry >Content-Type: text/plain; charset=utf-8 > >1) Add a patron attribute type: > http://localhost:8081/cgi-bin/koha/admin/patron-attr-types.pl?op=add_attribute_type >2) Make sure its repeatable + is_date >3) Visit overdues: > http://localhost:8081/cgi-bin/koha/circ/overdue.pl >4) Click the 'add' button under the date custom attribute >5) Click on the newly created input, notice the flatpickr pop up doesnt > show >6) Apply patch. Repeat. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >index ba8169a062..f81da9f95f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >@@ -307,6 +307,10 @@ > clone.find(".select2").remove(); > original.after( clone ); > $("#" + appendid ).select2(); >+ } else if( clone.find(".flatpickr").length ){ >+ clone.attr("id", appendid ); >+ original.after( clone ); >+ apply_flatpickr(clone.find(".flatpickr")); > } else { > clone.attr("id", appendid ); > original.after( clone ); >-- >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 36882
:
166812
|
166915
| 170446