Bugzilla – Attachment 166812 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.45 KB, created by
Pedro Amorim
on 2024-05-16 11:48:11 UTC
(
hide
)
Description:
Bug 36882: Reapply flatpickr to cloned entry
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-05-16 11:48:11 UTC
Size:
1.45 KB
patch
obsolete
>From a97eee9fdf62b9cab75c19fffda371aa0899d720 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 > >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. >--- > 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 57a56a5435..575ca01dcc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >@@ -305,6 +305,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.39.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