Skip to content

Commit

Permalink
Fixed issue #14196: Unable to use dynamic mindate and maxdate
Browse files Browse the repository at this point in the history
Dev: slice not available, but better in
Dev allow, for example : {year.NAOK}-01-01 (else need {year.NAOK+"-01-01"}
  • Loading branch information
Shnoulle committed Oct 30, 2018
1 parent 1aa7050 commit 2f4eb59
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -52,8 +52,8 @@
{# get the same default value than qanda_helper #}
{% set aJsonOption = json_encode({
'format' : dateformatdetailsjs,
'minDate' : mindate[0] == '{' ? '1900-01-01' : mindate,
'maxDate' : maxdate[0] == '{' ? '2037-12-31' : maxdate,
'minDate' : '{' in mindate ? '1900-01-01' : mindate,
'maxDate' : '{' in maxdate ? '2037-12-31' : maxdate,
'stepping' : minuteStep,
'sideBySide' : true
})
Expand Down

0 comments on commit 2f4eb59

Please sign in to comment.