If you set up an options element instance with #multiple set to TRUE but no #multiple_toggle, the element is treated as if it does not have the #multiple property in the value callback function, which results in the default value of the element not being saved correctly.

This issue arises in Form Builder, for the checkbox element (which forces #multiple to be TRUE but does not want to provide a UI to configure it, so it does not use #multiple_toggle).

The attached patch fixes it and should apply to both 6.x and 7.x.

CommentFileSizeAuthor
options-element-multiple.patch1.68 KBDavid_Rothstein

Comments

quicksketch’s picture

Status: Needs review » Postponed

Sweet, makes sense. Committed to both versions.

quicksketch’s picture

Status: Postponed » Fixed

Fixed, not just postponed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.