From d696827cbde3ec34febadeb3db4ee11c81346de0 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 2 May 2016 14:32:33 +0530 Subject: [PATCH] CRM-18487 - max date should be the last date of the year --- CRM/Core/BAO/CustomField.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index f91e8cc9e2..c72788e329 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -905,7 +905,8 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { $params = array( 'date' => $field->date_format, 'minDate' => isset($minYear) ? $minYear . '-01-01' : NULL, - 'maxDate' => isset($maxYear) ? $maxYear . '-01-01' : NULL, + //CRM-18487 - max date should be the last date of the year. + 'maxDate' => isset($maxYear) ? $maxYear . '-12-31' : NULL, 'time' => $field->time_format ? $field->time_format * 12 : FALSE, 'yearRange' => "{$minYear}:{$maxYear}", ); -- 2.25.1