cck checkbox won't save value

jenlampton - November 10, 2007 - 00:26
Project:CCK Field Permissions
Version:5.x-1.10
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have cck option widgets (5.x-1.5) installed.
The option widgets module works without cck_field_permissions.
The cck_field_permissions module works as expected with selections.
The check boxes REFUSE to save their values, the field in the db is always 0.
I changed the field in the db to 1 to see what would happen, and editing the page returned it to zero.

Even weirder than that, when I returned to admin > content types > mytype > manage fields (to remove the field) the field was missing from the list of fields. It is however listed on the admin > content types > mytype > display fields page.

I can get by using another type here, but check boxes are really what I need. Is there any active development on this module at the moment?

#1

hedac - December 1, 2007 - 03:12

same happened to me with integer checkboxes..... always 0 value... but I don't know if it is a cck permissions bug...
I tried with text checkbox and it works.

#2

brianV - December 3, 2007 - 18:34

I am having a similar issue with checkboxes - they save to the DB ok, but always load as 'checked' when you open the edit screen. Also, they are always checked in the node creation screen.

The default behaviour is 'unchecked'.

However, I am not using CCK Field perms, so I suspect that the issue we may all be having is with the Options / Select Widgets component of CCK. I suggest we refile under CCK.

Thoughts?

#3

Vidar Løvbrekke... - February 18, 2008 - 22:49
Status:active» closed

This should really be filed as an issue with CCK. The solution is to reverse the order of the "allowed values" list (0 must be on top of the list)
example:

0|This checkbox is currently disabled
1|This checkbox is currently enabled

I'm closing this issue as it is not a bug in cck_field_perms

 
 

Drupal is a registered trademark of Dries Buytaert.