CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Drupal "My Account" doesn't show data from custom data groups
Pages: [1]

Author Topic: Drupal "My Account" doesn't show data from custom data groups  (Read 1807 times)

zagrev

  • Guest
Drupal "My Account" doesn't show data from custom data groups
May 29, 2008, 08:54:12 pm
Drupal 5.7, CiviCRM 2.0.3

I have several groups of custom data for each contact. The contact information is created first. When the user registers with the site, the drupal user is linked to the contact properly via the civicrm_uf_match table. But when the new drupal user views or edits their account information, none of the custom data is displayed or editable. The groups are visible (as tabs), but the contents of each page is empty.

I wonder if this is because I have incompletely created the Drupal user.  I have called CRM_Core_BAO_CMSUser::create to create the Drupal user and the UF match record. Is there something else I should be doing to finish this task of registering a user for an existing contact?


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal "My Account" doesn't show data from custom data groups
May 30, 2008, 12:49:40 am

have u given the anon / auth user the drupal permission: "access all custom data"?

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

zagrev

  • Guest
Re: Drupal "My Account" doesn't show data from custom data groups
May 31, 2008, 06:49:46 am
I turned on "access all custom data" and "access user profiles" but the records still don't get created. I'm not finding anything in that creates the custom data. I have found CRM_Core_BAO_CustomValueTable::postProcess, but I don't understand how that works. Even if I don't set any custom data parameters in the CRM_Core_BAO_CMSUser::create, should not the records for the custom data at least exist? Or is this just wishful thinking?

zagrev

  • Guest
Re: Drupal "My Account" doesn't show data from custom data groups
May 31, 2008, 08:27:47 am
oops, I veered of the factual path there. I got a little too wrapped up in the fact that the records didn't exist. That's not the problem. I edit the custom data as an admin, and that works, but the user still cannot see or edit the custom data. The data groups appear but each tab has no data. This looks more like an ACL thing now.

zagrev

  • Guest
Re: Drupal "My Account" doesn't show data from custom data groups
May 31, 2008, 10:33:14 am
Got it. For some reason, authenticated users could not access any custom data. That was the problem. User error. Sorry, and thanks for the attempts at help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Drupal "My Account" doesn't show data from custom data groups

This forum was archived on 2017-11-26.