aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorIndrek Juhkam <indrek@urgas.eu>2012-01-20 18:42:04 +0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-01-24 16:03:16 -0200
commitd92b5fe07cc178f14bdd5a4ecf4adb8b96dcdd7e (patch)
treeb8f6b2077c07db7af158558e0820f13016c13267 /actionpack/lib
parentd4cfc4cec00b21f7fc47c094107168dbc0d8ed2c (diff)
downloadrails-d92b5fe07cc178f14bdd5a4ecf4adb8b96dcdd7e.tar.gz
rails-d92b5fe07cc178f14bdd5a4ecf4adb8b96dcdd7e.tar.bz2
rails-d92b5fe07cc178f14bdd5a4ecf4adb8b96dcdd7e.zip
Fix date_select nil and blank and order case
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/date_helper.rb2
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