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) »
  • Profile is missing Contact SubType values in Event Registration.
Pages: [1]

Author Topic: Profile is missing Contact SubType values in Event Registration.  (Read 709 times)

Cedeira

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 1
    • CompuLogiX Systems, Inc.
Profile is missing Contact SubType values in Event Registration.
August 20, 2010, 04:41:10 pm
Hello all,

First I would like to extend my thanks for the excellent work on 3.2 and specifically on the write up of the APIs and Hooks. Great work, even someone with my coding experience can make some custom hooks now.

While working on some code to make the relationships between Parents -> Children on Event registrations I found what I think is a bug. It seems that when I place the Profile on the Event and try to register using said Profile the Contact SubType field, which is supposed to have the Contact SubType value for the Profile, goes missing. Mind you that if I use the Profile to create a Contact SubType with a link to the profile e.g.: /index.php?option=com_civicrm&task=civicrm/profile/create&gid=8&reset=1 the Contact SubType listbox does contain the value for the subtype. Attached are two jpg's of the same profile, one on the Event process and one straight call.

I will try to reproduce it in the demo site sometime tonight. But, thought I would ask first if someone new about this. Any help would be appreciated.

The reason for me to use the Contact SubType dropdown on a Profile was to uniquely identify it in my Hook script with:
Code: [Select]
$ContactSubType = $objectRef->contact_sub_type; since I am using the
Code: [Select]
joomla_civicrm_post($op, $objectName, $objectId, &$objectRef) hook and I wouldn't have to rely on the profile number, etc.

For those of you looking for some code on the relationship stuff for profiles and event registration I will post it up here once I have done some more tests on the code, completed putting it into production, and also develop the documentation for my clients.

thanks in advance,
Jose
God grant me the serenity to accept the things I can not change, valor to change the ones I can, and the knowledge to recognize the difference!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Profile is missing Contact SubType values in Event Registration.
August 23, 2010, 05:41:57 am
Can you replicate this on http://joomla.demo.civicrm.org, if you are able to replicate please file a bug report in issue tracker

Thanks
Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Profile is missing Contact SubType values in Event Registration.

This forum was archived on 2017-11-26.