#408 ✓resolved
Bryan Larsen

input for DateTime has extra fields

Reported by Bryan Larsen | April 24th, 2009 @ 03:55 PM | in Hobo 1.0 - Final

If you use a datetime input, you end up with these selects:

<select id="foo_year" name="foo[year]">
<select id="foo_month" name="foo[month]">
<select id="foo_day" name="foo[day]">
<select id="foo_hour" name="foo[hour]">
<select id="foo_minute" name="foo[minute]">
<select id="foo_second" name="foo[second]">
<select id="foo_hour" name="foo[hour]">
<select id="foo_minute" name="foo[minute]">

As you can see, hour & minute are appearing twice.

Comments and changes to this ticket

  • Bryan Larsen

    Bryan Larsen April 24th, 2009 @ 03:56 PM

    • State changed from “new” to “open”

    this is an bug in Rails that becomes much more obvious in Hobo because the :order option is always passed to select_datetime.

  • Bryan Larsen

    Bryan Larsen April 24th, 2009 @ 09:52 PM

    • State changed from “open” to “resolved”

    I've pushed a fix to partially work around the problem in Hobo. Now it will only screw up if you pass the "order" attribute to a DateTime input.

    If you need it properly fixed, you'll have to patch rails. Hopefully soon you'll just be able to install the latest version of rails to get the fix.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages