From e216889cad72949e16b1c4bee384fb26f929d0b3 Mon Sep 17 00:00:00 2001 From: Georgios Papadakis Date: Tue, 6 Mar 2018 00:06:27 +0200 Subject: [PATCH 1/3] Allow locking to min and / or max year to current year --- layouts/joomla/form/field/calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/joomla/form/field/calendar.php b/layouts/joomla/form/field/calendar.php index 0f3bde9d410ac..48edc546d6094 100644 --- a/layouts/joomla/form/field/calendar.php +++ b/layouts/joomla/form/field/calendar.php @@ -125,8 +125,8 @@ data-show-others="" data-time-24="" data-only-months-nav="" - - + + title="" > From f27cbd61848858f866cef472aafdfd28aaa8c3b2 Mon Sep 17 00:00:00 2001 From: Georgios Papadakis Date: Tue, 6 Mar 2018 00:55:49 +0200 Subject: [PATCH 2/3] Update calendar.php --- libraries/joomla/form/fields/calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/joomla/form/fields/calendar.php b/libraries/joomla/form/fields/calendar.php index 198714349ef6a..3bc372ff9e001 100644 --- a/libraries/joomla/form/fields/calendar.php +++ b/libraries/joomla/form/fields/calendar.php @@ -169,8 +169,8 @@ public function setup(SimpleXMLElement $element, $value, $group = null) $this->filltable = (string) $this->element['filltable'] ? (string) $this->element['filltable'] : 'true'; $this->timeformat = (int) $this->element['timeformat'] ? (int) $this->element['timeformat'] : 24; $this->singleheader = (string) $this->element['singleheader'] ? (string) $this->element['singleheader'] : 'false'; - $this->minyear = (string) $this->element['minyear'] ? (string) $this->element['minyear'] : null; - $this->maxyear = (string) $this->element['maxyear'] ? (string) $this->element['maxyear'] : null; + $this->minyear = strlen((string) $this->element['minyear']) ? (string) $this->element['minyear'] : null; + $this->maxyear = strlen((string) $this->element['maxyear']) ? (string) $this->element['maxyear'] : null; if ($this->maxyear < 0 || $this->minyear > 0) { From 243a1af670ebdae036470843d2c9a9e919bc46bb Mon Sep 17 00:00:00 2001 From: Georgios Papadakis Date: Tue, 6 Mar 2018 01:38:22 +0200 Subject: [PATCH 3/3] Cleared non-set variable notices --- layouts/joomla/form/field/calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/joomla/form/field/calendar.php b/layouts/joomla/form/field/calendar.php index 48edc546d6094..50623445b2559 100644 --- a/layouts/joomla/form/field/calendar.php +++ b/layouts/joomla/form/field/calendar.php @@ -125,8 +125,8 @@ data-show-others="" data-time-24="" data-only-months-nav="" - - + + title="" >