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); }