Hello there!

I have had a look around in this issue queue, and have also searched the net...

When using this module all is fine with deselecting any option apart from when the Checkbox option is being used:

I can select however many options (checkboxes) that I need, but once I try to deselect them all it seem, s to throw up this error:

error : warning: Cannot use a scalar value as an array in /var/www/vhosts/sfmdev.co.uk/httpdocs/includes/form.inc on line 1335

In other words, any less than 1 checkbox ticked and it displays the above error (and in the image attached).

Anyone have any ideas? :-s

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Arrow’s picture

I also get this. I am using this in combination with the Content Taxonomy module. Whenever I uncheck a checkbox, I receive the error. Let me know how I can help in troubleshooting this..

bakr’s picture

I face the same issue too,

Though the checkbox field is not marked as "Required"

Have tried the latest dev release with no further luck.

andreiashu’s picture

Version: 6.x-2.0 » 6.x-2.x-dev
Status: Active » Needs review
FileSize
1.51 KB

Please check if the attached patch fixes this problem.

thanks,
Andrei

andreiashu’s picture

Assigned: Unassigned » andreiashu
Priority: Normal » Major
andreiashu’s picture

FileSize
1.66 KB

This patch also fixes the problem for radios that are not marked as required.

andreiashu’s picture

Status: Needs review » Fixed

I commited the patch from #5 so the fix should be available in the latest 6.x-2.x dev snapshot in less than 12h.
Please reopen this issue if the problem persists.

bakr’s picture

Status: Fixed » Needs review

As a follow up, see the following issue

#977800: Cannot Unselect All Checkboxes

johnv’s picture

As another follow-up, which contains a patch: #1484008: Error on unchecking all checkboxes

joelpittet’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Last update was 2010, going to close as outdated.