Hi,
I'm using CCK Private Fields with Content profile. I set some fields(e.g. user e-mail) to 'private by default'. But when a user creates his profile they still have an eye icon next to them instead of padlock. However, when a user explicitly changes the options to private they stay that way, as expected.

Thanks.

Comments

markus_petrux’s picture

Status: Active » Needs review

Could you please try the following mini-patch to includes/node_form.inc?

-        // Otherwise, the privacy status is public when creating a node.
+        // Otherwise, when creating a node, get the default privacy status
+        // defined for this field.
         else {
-          $field_privacy_status = CCK_FIELDS_PRIVACY_STATUS_PUBLIC;
+          $field_privacy_status = cck_private_fields_get_content_field_privacy($field_name);
         }
tamasco’s picture

Status: Needs review » Fixed

Thanks a lot, @Markus. This solved my problem!!

Regards.

markus_petrux’s picture

Status: Fixed » Reviewed & tested by the community

Ah, thanks for confirmation. I'll commit this later to CVS. ;-)

markus_petrux’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS. It should be available with the next development snapshot.

I'll wait a few more days before packing a new release though.

Thanks for reporting the issue and testing!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.