diff --git a/etemplate/js/et2_widget_date.js b/etemplate/js/et2_widget_date.js index 11f2359c37..dd0edf3701 100644 --- a/etemplate/js/et2_widget_date.js +++ b/etemplate/js/et2_widget_date.js @@ -500,7 +500,7 @@ var et2_date_duration = et2_date.extend( return this.options.empty_not_0 ? '' : 0; } // Put value into minutes for further processing - switch(this.format ? this.format.val() : this.options.display_format) + switch(this.format && this.format.val() ? this.format.val() : this.options.display_format) { case 'd': value *= this.options.hours_per_day;