Fix duration parsed in wrong format if there was no choice for format.

This commit is contained in:
Nathan Gray 2014-08-27 15:09:14 +00:00
parent 6cabb4d37f
commit 6b2b686544

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;