From 3a85da0db66f534418bbd37c141ef105605b3fd2 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 19 Aug 2022 08:35:14 +0000 Subject: [PATCH] Bug 30718: (QA follow-up) Apply prevent duplication on OPAC too See former intranet side patch. Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc index 17aafe7c13..ae578d2987 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc @@ -70,7 +70,7 @@ if( $(instance.input).hasClass("pastdate") ){ instance.set("maxDate", new Date().fp_incr(-1)); } - $(instance.input).siblings('input.flatpickr') + $(instance.input).find('~input.flatpickr:first') /* Add a wrapper element so that we can prevent the clear button from wrapping */ .wrap("") .after( $("") -- 2.39.5