From 9e3676a8c91dd4548e9520ef7e462527d52d73c3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 4 May 2015 14:46:56 +0000 Subject: [PATCH] Only apply year range to date only widgets, it causes times to break --- etemplate/js/et2_widget_date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_date.js b/etemplate/js/et2_widget_date.js index 316141e799..9d29fc8af4 100644 --- a/etemplate/js/et2_widget_date.js +++ b/etemplate/js/et2_widget_date.js @@ -291,7 +291,7 @@ String: A string in the user\'s date format, or a relative date. Relative dates */ set_year_range: function(_value) { - if(this.input_date) + if(this.input_date && this._type == 'date') { this.input_date.datepicker('option','yearRange',_value); }