Skip to content

Commit

Permalink
#927 fixed a copy&paste error that confused minDate and maxDate
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Apr 10, 2018
1 parent 8d10e32 commit c2c48c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ private void encodeJS(FacesContext fc, ResponseWriter rw, DateTimePicker dtp, St
dtp.getMinDate().contains("moment") ? dtp.getMinDate() : "'" + dtp.getMinDate() + "'" :
"";
String maxDate = BsfUtils.isStringValued(dtp.getMaxDate()) ?
dtp.getMinDate().contains("moment") ? dtp.getMaxDate() : "'" + dtp.getMaxDate() + "'" :
dtp.getMaxDate().contains("moment") ? dtp.getMaxDate() : "'" + dtp.getMaxDate() + "'" :
"";

rw.startElement("script", dtp);
Expand Down

0 comments on commit c2c48c9

Please sign in to comment.