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) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • (Drupal) Individuals cannot edit profile specific for their subcontact type
Pages: [1]

Author Topic: (Drupal) Individuals cannot edit profile specific for their subcontact type  (Read 980 times)

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
(Drupal) Individuals cannot edit profile specific for their subcontact type
July 22, 2012, 04:24:56 pm
Using Drupal 7, Civi 4.1

I have an Individual subcontact type named "Officer."  I have a custom data set (that is used for the Officer subcontact type only) named "Officer Details" which contains a Contact Reference field that is labeled "Employer."  Finally, I have a profile "Officer Profile" which contains the"Employer" custom data field.

The problem is that when a Drupal user whose contact subtype is Officer attempts to edit their Officer Profile, instead of being presented with the Employer autocomplete field, this warning appears: "This profile is configured for contact type 'Officer'. It cannot be used to edit contacts of other types. Which doesnt make sense because the user IS a subcontact type of Officer.

Please advise!

« Last Edit: July 22, 2012, 04:57:09 pm by everything »

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) Individuals cannot edit profile specific for their subcontact type
July 22, 2012, 06:40:26 pm

is this the latest version of civi? can u check if this also happens on our demo server.

This was a bug in earlier versions of 4.1. Not sure if it was fixed in time for 4.1.5 or if the fix was added to 4.2

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

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: (Drupal) Individuals cannot edit profile specific for their subcontact type
July 22, 2012, 10:29:13 pm
Hey lobo thanks for the reply

1) Demo site - I am able to get this to work on demo, however a different issue arises at this point (on the demo site).  I placed the user into the Officer subcontact type, and the auto select reference works on the profile; but the profile also appears when the user account is NOT in the Officer subcontact type.  In other words if i was to change the contact subtype to something different than Officer, the profile for the officer subcontact type still appears as a tab on the drupal user account edit page.

2) I will find out and report back our current version of civi.  It seems our dev server is down (of course lol).  Lets say I need to upgrade to 4.1.5.  Are there specific instructions for upgrading from 4.1.x to 4.1.y?  I have found the outdated 3.4 docs, but cant seem to locate 4.x instructions

Thanks!!!

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) Individuals cannot edit profile specific for their subcontact type
July 23, 2012, 07:44:45 am

1. yes, drupal integration does not have support for "contact subtypes" as yet. Would help if you can write the needed code and/or sponsor a developer to do so. I suspect its a 5-10 hour project

2. Please check the wiki links that are attached to the blog post announcing the release

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

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: (Drupal) Individuals cannot edit profile specific for their subcontact type
July 23, 2012, 07:34:34 pm
Thanks lobo Ill check there.  We are using 4.1.0 so def going to apply the update

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: (Drupal) Individuals cannot edit profile specific for their subcontact type
August 14, 2012, 11:45:43 pm
Im happy to report upgrading to 4.1.5 solved our issues. Also, turns out a simple workaround for the subtype specific profiles both appearing as tab links on user pages issue is to use context module to set a body class based on user role and then simply hide the appropriate tabs using css**.  Perhaps there is a better way but this gets the job done.  Thanks!


**Each individual resides in a particular group based on their subtype, and as such are also granted a drupal role by using the Drupal  group roles sync module.  The role is then set as a body class by context (create one context per role using User role as condition and Theme HTML as reaction)
« Last Edit: August 14, 2012, 11:58:47 pm by BusinessMediaCenter »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • (Drupal) Individuals cannot edit profile specific for their subcontact type

This forum was archived on 2017-11-26.