From 5b805637076740be32c79de0b9d6365c5f77ed51 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 9 May 2014 09:48:10 +0000 Subject: [PATCH] Consider other date widgets for date initialization as they could have fixed data_format too --- etemplate/js/et2_widget_date.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_date.js b/etemplate/js/et2_widget_date.js index 6efccc8ba9..325a1cda26 100644 --- a/etemplate/js/et2_widget_date.js +++ b/etemplate/js/et2_widget_date.js @@ -159,7 +159,9 @@ var et2_date = et2_inputWidget.extend( this._oldValue = _value; return; default: - if (this.id.match(/^#/g) && this.options.value == _value) // Parse customfields's date with storage data_format to date object + // Parse customfields's date with storage data_format to date object + // Or generally any date widgets with fixed date/time format + if (this.id.match(/^#/g) && this.options.value == _value || (this.options.data_format && this.options.value == _value)) { switch (this._type) {