backport from Nathans r48344: Fix duration parsed in wrong format if there was no choice for format.

This commit is contained in:
Ralf Becker 2014-08-27 16:32:20 +00:00
parent ee167028e3
commit 1ed8a70a08

View File

@ -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;