Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Select Multiple sets invalid values

#22

When using the setValue command with the select multiple option, the function will go and reset already checked checkboxes to false even if the value is to be set. This causes problems when you want to set a multiple value on page load, since the net result is that the last value is the only one that gets saved and displayed. Here is a patch that will set all of the checkboxes to false then only set the checkboxes to true of the values it is given.

As a side note, using the default options key of 'value' does not work at all. I have no idea there.

Reported by Andrew Coleman · August 29th, 2008 @ 07:52 PM

State: invalid
Milestone: 1.0
Assigned to: Ryan Johnson Ryan Johnson

Activity

  1. Ryan Johnson
    Ryan Johnson
    • State changed from unconfirmed to hold

    Another patch was applied to fix a problem with setValue, I think this might solve your problem from looking at the patch. Can you check out the latest version and see if it accomplished the same fix that your patch does?

    September 9th, 2008 @ 12:15 PM

  2. Ryan Johnson
    Ryan Johnson
    • State changed from hold to invalid

    September 9th, 2008 @ 12:19 PM

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.