Skip to content

Commit

Permalink
Fixed issue #13774: Date drop down always throws error using date for…
Browse files Browse the repository at this point in the history
…mat dd.mm.yyyy
  • Loading branch information
dominikvitt committed Jun 14, 2018
1 parent 0a1e17d commit 6c561db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/scripts/expressions/em_javascript.js
Expand Up @@ -784,6 +784,9 @@ function LEMval(alias)
else if (attr.type=='D') {
// get date format pattern of referenced question
var sdatetimePattern=$(jsName.replace(/java/g, '#dateformat')).val();
if (sdatetimePattern == ''){
sdatetimePattern=$(jsName.replace(/java/g, '#dateformat')).text();
}
// if empty (eg., variable on a previous page), set default format yy-mm-dd HH:MM
sdatetimePattern = sdatetimePattern == ''? 'YYYY-MM-DD HH:mm': sdatetimePattern;

Expand Down

0 comments on commit 6c561db

Please sign in to comment.