Sorry for my english.
I try to set up a cck field in a content profile node type with CCK Phone, but nothing happend. The settings of private field doesn't show on node add page. With another cck field works perfect. Im using it with friend flag module.

Comments

szantog’s picture

Ok, some other:
I set up a new field after the phone field, the phone field is good, but the last doesn't work. Only the last.

markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)

Telling it doesn't work does not give too much information about the cause of the issue, which is what needs to be fixed, and it could be related to many, many things...

To be sure it is related to CCK Private Fields, this needs to be debugged on site, trying with latest dev versions of all affected modules, etc.

szantog’s picture

Title: Doesn't work with CCK phone » Adminrole administer (not user1) doesnt get roles automatic to the last CCK field.
Priority: Normal » Minor
Status: Postponed (maintainer needs more info) » Active

Ok, sorry. :)
Doesn't show.
Now, i solved it, i tell you, what was the problem, because this is a bug too.
I'm not the user 1, but i am administer on site using adminrole module.
If i make a cck field, i dont get automatic the new roles: edit privacy options for field field_phone and view privacy options for field field_phone
If i make a new cck field, i got the roles field_phone, but i dont get the roles to new fields. I need to add manually in premission page.
So, this a very minor bug, and can solved it simply.
I change the title, just close it, if this is difficult to repair. :)
I hope, this was understable! :)

markus_petrux’s picture

Status: Postponed (maintainer needs more info) » Active

Sorry, I do not use the Adminrole module. Do you mean you need to explicitly enable the permissions to an administrator role (assuming that's a feature of the Adminrole module) as soon as they are enabled from the field settings form?

If so, since the Adminrole is not Drupal core, I need to know how to trigger the Adminrole module to evaluate if there are new permissions. Maybe it just intervenes when modules are enabled, and then I think you should ask the Admin module maintainers to add provide a method that can be triggered from other modules that generate permissions dynamically.

markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)
szantog’s picture

Project: CCK Private Fields » Admin role

Ok, i move this to adminrole module.

Dave Reid’s picture

Status: Active » Fixed

All you have to do is in a form_alter, add:

if (module_exists('adminrole')) {
  $form['#submit'][] = 'adminrole_update_permissions';
}

Or you can directly call the adminrole_update_permissions() function.

markus_petrux’s picture

Project: Admin role » CCK Private Fields
Version: 6.x-1.1 » 6.x-1.x-dev
Component: Code » Miscellaneous
Category: bug » feature
Status: Fixed » Active

Ok, moving back to CCK Private Fields queue.

Support for Adminrole has now been added, and it should be available with the next dev snapshot. Feedback from testing is appreciated so that I may create a new stable release for CCK Private Fields with the feature in place. Thanks!

Patch:
http://drupal.org/cvs?commit=407512

markus_petrux’s picture

Status: Active » Fixed
szantog’s picture

I've tested it, and added more new cck field with different privacy settings, and all worked well!
Thanks all!

Status: Fixed » Closed (fixed)

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