Checkbox values stored, not displayed properly

nateswart - July 14, 2008 - 14:09
Project:Webform
Version:5.x-2.1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I'm seeing the following issue:

Setup:
- a 'select' form component type
- 2 options, with keys defined
- 'multiple' option is checked
- 'include in email' option is checked
- 'mandatory' option is checked

What works:
- Form submits fine (and without errors)
- Email generated claims nothing was entered
- 'Results' view reports value-tally correctly
- 'Table' view reports the values correctly

What does NOT work:
- 'Download' (to CSV) claims checkbox is always 'No', no matter what the value is
- Loading the individual record displays all the checkboxes as not checked, no matter what the value is

Does anyone have any ideas on how to fix this?

#1

nateswart - July 14, 2008 - 15:48
Category:bug report» support request

#2

Shane Birley - July 16, 2008 - 02:31

I confirm this new support request/bug. The update to 2.1.1 has introduced an issue where:

- check boxes do not display the checked boxes
- CSV downloads are reflecting the failing checkboxes and selecting "No" rather than "Yes" when older data is confirmed as having been checked "Yes' prior to the 2.1.1 update

- the table view indicates the boxes displays the correct data
- the data was displaying correctly pre-update to 2.1.1

I also checked the webform_submitted_data table and the information is correct within that table. But, the views are defaulting to "No".

I will note that if you manually reset the check boxes in the submitted form, the check boxes display correctly. When this happens, I also have noted the "and" is replaced with "and" and drops the formatting.

#3

Shane Birley - July 16, 2008 - 15:46

Additional testing on a couple of separate test sites. This bug only appears when there is formatting within the text area being presented. If there is no formatting, the check boxes retain their original settings. If HTML formatting is present in the questions/description of the option on the form, the check boxes lose the display of the appropriate status yet the actual status of the check box is retained in the other views as stated above.

This only happens when the previous installation of the webform.module is used. Installing the module fresh appears not to have any issue retaining information in the form, check boxes or otherwise.

#4

nateswart - July 16, 2008 - 21:19

I just looked at the formatting and I wasn't using any special formatting, just plain text. I did have a 'markup' form component on the form which I removed, but this didn't fix the issue.

#5

quicksketch - July 21, 2008 - 06:07
Status:active» duplicate

This has been fixed in #279883: Select stores "Some readable option" not safe_key.

 
 

Drupal is a registered trademark of Dries Buytaert.