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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviEvent Suggestions (Moderator: Michał Mach) »
  • Exporting participant_registered_by_id
Pages: [1]

Author Topic: Exporting participant_registered_by_id  (Read 1459 times)

passadena

  • Guest
Exporting participant_registered_by_id
August 05, 2010, 11:33:33 am
This is a minor point, but I'm wondering why some fields don't show up in the list of exportable fields when I try to export event participants.  For example, participant_registered_by_id isn't there.   

This seems to be fixed by simply adding a line to Participant.php in CRM/Event/DAO to say 'export' => true.    Was this line left out by design?    Thanks!!

                'participant_registered_by_id' => array(
                    'name' => 'registered_by_id',
                    'type' => CRM_Utils_Type::T_INT,
                    'title' => ts('Registered By ID') ,
                    'default' => 'UL',
                    'FKClassName' => 'CRM_Event_DAO_Participant',
                    'export' =>   true,
                ) ,

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: Exporting participant_registered_by_id
August 05, 2010, 12:22:50 pm

i've fixed this for 3.2.1

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

passadena

  • Guest
Re: Exporting participant_registered_by_id
August 05, 2010, 02:57:18 pm
Ok thanks!   

I noticed that 'participant_discount_id' also isn't being exported, just FYI.

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: Exporting participant_registered_by_id
August 05, 2010, 03:06:05 pm

since we dont export the discount table, exporting the discount id does not make a lot of sense (IMO)

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

passadena

  • Guest
Re: Exporting participant_registered_by_id
August 05, 2010, 03:17:19 pm
Makes sense to me.  Just wanted to point it out since I happened to see it while poking around the code.   Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviEvent Suggestions (Moderator: Michał Mach) »
  • Exporting participant_registered_by_id

This forum was archived on 2017-11-26.