You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the latest master from GitHub (or the 3.1.30 release), it is not possible to have an unselected Year/Month/Day, as described in the documentation (see below). Attempting to use "2015-08-" as a time value (for example) defaults to the current date.
year_empty -> "use values like “-MM-DD” as time-attribute to indicate an unselected year"
month_empty -> "use values like “YYYY--DD” as time-attribute to indicate an unselected month"
day_empty -> "use values like “YYYY-MM-” as time-attribute to indicate an unselected day"
The text was updated successfully, but these errors were encountered:
bluepowder
changed the title
Unselected Year/Month/Day not supported as described in docs
Unselected Year/Month/Day not working in {html_select_date}
Oct 17, 2017
@bluepowder is correct this not doing what it should do according to de docs
A fix would not be too hard and I don't see how it could mess anything up unintentionally.
Alternatively, since there is a workaround with an array, we could also just fix the docs.
Using the latest master from GitHub (or the 3.1.30 release), it is not possible to have an unselected Year/Month/Day, as described in the documentation (see below). Attempting to use "2015-08-" as a time value (for example) defaults to the current date.
On:
https://www.smarty.net/docs/en/language.function.html.select.date.tpl
year_empty -> "use values like “-MM-DD” as time-attribute to indicate an unselected year"
month_empty -> "use values like “YYYY--DD” as time-attribute to indicate an unselected month"
day_empty -> "use values like “YYYY-MM-” as time-attribute to indicate an unselected day"
The text was updated successfully, but these errors were encountered: