From 6b2b68654468bc828a71f571d9a60d0f9b0f83a4 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 27 Aug 2014 15:09:14 +0000 Subject: [PATCH] Fix duration parsed in wrong format if there was no choice for format. --- 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 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;