google-code-export / globalite

Automatically exported from code.google.com/p/globalite
1 stars 0 forks source link

:use_hidden option breaks select_month #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you use the :use_hidden option when calling select_month() nil is returned. 
It is supposed to 
return the HTML for a hidden date[month] field. Rails makes this call 
internally when you call 
date_select() and pass :discard_month => true. 

The problem is on line 112 of localized_action_view.rb. The result of the call 
to hidden_html should 
be saved in @selector so it will be returned.

I have attached a patch fixing the problem and updated specs.

Original issue reported on code.google.com by anotherb...@gmail.com on 13 Feb 2008 at 12:07

Attachments:

GoogleCodeExporter commented 9 years ago
do we still have this problem or should I apply your patch?

Thanks,

-Matt

Original comment by mattAimo...@gmail.com on 14 May 2008 at 7:09

GoogleCodeExporter commented 9 years ago
Yes, the problem still exists. You should be able to apply the patch to fix it. 

 - Patrick

Original comment by anotherb...@gmail.com on 14 May 2008 at 12:31

GoogleCodeExporter commented 9 years ago
committed, thanks

Original comment by mattAimo...@gmail.com on 16 May 2008 at 7:50

GoogleCodeExporter commented 9 years ago

Original comment by mattAimo...@gmail.com on 23 May 2008 at 8:41