提交 f04346d8 编写于 作者: S Sam Oliver 提交者: Michael Koziarski

Stops date select helpers from defaulting the selected date to today if...

Stops date select helpers from defaulting the selected date to today if :prompt option has been used
Signed-off-by: NMichael Koziarski <michael@koziarski.com>
[#561 state:resolved]
上级 5dbc9d40
......@@ -931,7 +931,7 @@ def datetime_selector(options, html_options)
end
def default_datetime(options)
return if options[:include_blank]
return if options[:include_blank] || options[:prompt]
case options[:default]
when nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册