Checkbox does not show on link fields

coltrane - December 7, 2007 - 16:47
Project:nodeprofile privacy
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Enabled users to show/hide a link field but the form checkbox does not show when editing their nodeprofile. The field is in the nodeprofile_privacy_fields table, too.

#1

coltrane - December 7, 2007 - 18:07

The form element is lost in nodeprofile_privacy_match_fields() because if I comment out the pre_render addition in nodeprofile_privacy_form_alter() then the checkbox appears (though not next to its corresponding field of course).

I'm not certain what a correct overall fix is yet, but if I add in the privacy option a level lower in the related field of type link then it works correctly. It has to do with how link fields are created in the form. Adding the privacy option at the top level doesn't show, but putting it in at element 0 does.

#2

smitty - December 19, 2008 - 14:09
Status:active» duplicate

Please have a look at: http://drupal.org/node/349115

 
 

Drupal is a registered trademark of Dries Buytaert.