diff options
author | Indrek Juhkam <indrek@urgas.eu> | 2012-01-20 18:42:04 +0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-24 16:03:16 -0200 |
commit | d92b5fe07cc178f14bdd5a4ecf4adb8b96dcdd7e (patch) | |
tree | b8f6b2077c07db7af158558e0820f13016c13267 /actionpack/lib/action_view | |
parent | d4cfc4cec00b21f7fc47c094107168dbc0d8ed2c (diff) | |
download | rails-d92b5fe07cc178f14bdd5a4ecf4adb8b96dcdd7e.tar.gz rails-d92b5fe07cc178f14bdd5a4ecf4adb8b96dcdd7e.tar.bz2 rails-d92b5fe07cc178f14bdd5a4ecf4adb8b96dcdd7e.zip |
Fix date_select nil and blank and order case
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/date_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb index 2806348337..3464f2d461 100644 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -734,7 +734,7 @@ module ActionView def select_day if @options[:use_hidden] || @options[:discard_day] - build_hidden(:day, day) + build_hidden(:day, day || 1) else build_options_and_select(:day, day, :start => 1, :end => 31, :leading_zeros => false, :use_two_digit_numbers => @options[:use_two_digit_numbers]) end |