multiple checkbox error with &

Created on 28 April 2011, about 13 years ago
Updated 5 February 2023, over 1 year ago

Hello.

I got a multiple checkbox cck field with some allowed values... one of them is with the text "Test & Test".

Everything goes well but if the user checks that box in the node creation form, the form will be rejected and says "An illegal choice has been detected. Please contact the site administrator."

after debugging session found that in the _form_validate function, the values received has the &, but the allowed values are in a key => value array like this

'Test &; Test' => 'Test & Test'

so the validation is rejected.

I changed the cck type to a multiple select and this is not happening here.

any help would be apperciated.

๐Ÿ› Bug report
Status

Closed: outdated

Version

2.7

Component

optionwidgets.module

Created by

๐Ÿ‡จ๐Ÿ‡ดColombia tengoku Bogotรก

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น

    I am closing this issue, since it's for a Drupal version that is now not supported.
    Please re-open it if the issue is also relevant for other project branches that require a supported Drupal version.

Production build 0.69.0 2024