From dc07d6825db6cc349ed5903ca1fe203da2754fbd Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Wed, 11 May 2022 19:30:15 +0300 Subject: [PATCH] Reset coptions table before calculating the date fields --- app/templates/element/filter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/templates/element/filter.php b/app/templates/element/filter.php index ece0da3e2..11535d325 100644 --- a/app/templates/element/filter.php +++ b/app/templates/element/filter.php @@ -201,6 +201,7 @@ // that will interact with the field value. Allowing direct access to the input field is for // accessibility purposes. $starts_field = $key . "_starts_at"; + $coptions = []; $coptions['class'] = 'form-control datepicker'; $coptions['label'] = 'Starts at:'; $coptions['required'] = false; @@ -234,6 +235,7 @@ // that will interact with the field value. Allowing direct access to the input field is for // accessibility purposes. $ends_field = $key . "_ends_at"; + $coptions = []; $coptions['class'] = 'form-control datepicker'; $coptions['required'] = false; $coptions['placeholder'] = ''; // todo: Make this configurable