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 CiviEvent (Moderator: Yashodha Chaku) »
  • Changing participant role of registered participant
Pages: [1]

Author Topic: Changing participant role of registered participant  (Read 3301 times)

sykong

  • Guest
Changing participant role of registered participant
November 08, 2009, 06:51:41 am
Hi,

I have the following situation.

Participant 1 has registered for an event and also registered participant 2 and participant 3. If now, I edit participant 1 and change his role, the change also affects participants 2 & 3.

Is this the intended behaviour?

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: Changing participant role of registered participant
November 08, 2009, 07:24:45 am

i'm pretty sure its not intended behavior (and if it is, it should be a bug, IMO)

can you reproduce this on the demo server

thanx

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

sykong

  • Guest
Re: Changing participant role of registered participant
November 11, 2009, 07:32:34 am
Sorry... the "bug" should be "If the status is changed, the status of the other participants are also changed".  But this behaviour does not seem to be very consistent.

http://drupal.demo.civicrm.org/civicrm/event/search?reset=1&force=1&event=8&status=true

I registered 4 participants. Then I changed the status of participant No 1 to attended. And all became attended. Then I changed participant No 1 to No show and from then on, the status does not follow

sykong

  • Guest
Re: Changing participant role of registered participant
November 11, 2009, 07:39:40 am
I just created another 4 participants.. and can't seem to duplicate what happened

... of course the status of the previous 3 remained as attended.. telling me that I did not imagine the bug

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Changing participant role of registered participant
November 13, 2009, 05:57:38 pm
I've been testing this out and there's some inconsistencies in how things work depending on HOW you update the participant status. There is logic that wants to update all "related" participants for the multiple registration case - which was designed to handle situations like:

- Participants register "pay later" and then primary participant cancels. All secondary participants should also be cancelled since payment (contribution record) has been cancelled.
- Same if primary participant record in Pending status "expires".
- And when primary participant record goes from Pending to Registered (payment received) - all others should also be updated

That said, updates from Registered to No Show (like your case) should not "cascade". I'm investigating a bit more and will file an issue shortly (and update this post).
Protect your investment in CiviCRM by  becoming a Member!

sykong

  • Guest
Re: Changing participant role of registered participant
November 16, 2009, 04:04:39 am
I hope you manage to find the bug... I could not manage to duplicate it by creating 4 more participants!

On my own installation, I have a custom status (called "volunteer") that is triggering it... but I can't seem to duplicate it consistently either...

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Changing participant role of registered participant
November 16, 2009, 09:01:21 am
I want to make sure we're talking about the same thing here because at different points in this thread you've used two different terms - "role" AND "status". There are two different properties of a participant. I've been assuming you are actually talking about statuses, but please confirm and also would be good to confirm the actual steps (workflow) you're using to update statuses.

There are 5 different possible workflows that will result in an update to a participant status:
- Edit Participant (from contact's Events tab) and change status in drop-down
- Find Participants -> Change Participant Status action
- Find Participants -> Batch Update via Profile
- Find Contributions -> Update Pending Contribution Status - this will also update the Participant status for "Pending pay later" registrations
- Edit Contribution (from contact's Contributions tab) - this will also update related Participant record status for Pending pay later registrations

The "correct" behavior is that participant status changes should cascade down from primary participant to additional participants whom they registered IF there is a related payment (contribution) record. For example:

Code: [Select]
- Person A registers for herself and person's B and C with "pay later" feature. All participants have pay-later status linked to a single Pending payment record.
- Person A calls up and cancels her registration. When staff sets her registration status to "Cancelled", statuses for person's B and C should also be cancelled.

However,  status changes such as Registered -> Attended, or Registered -> No-show should NOT be cascaded to the "additional participants".

I've created an issue here so you can track progress.
http://issues.civicrm.org/jira/browse/CRM-5403
 
Protect your investment in CiviCRM by  becoming a Member!

sykong

  • Guest
Re: Changing participant role of registered participant
November 17, 2009, 09:22:50 am
I'm having problem duplicating it....

Where is the code for this? Maybe I can look at it and see what might trigger it?

sykong

  • Guest
Re: Changing participant role of registered participant
November 26, 2009, 07:30:08 pm
Some more interesting discover...

Participant 1 registers Participants 2-5. When I batch edit Participant 1-3, but only change the status for Participant 1, Participants 4-5 follow the change!

Will test it out further later to see if I can get it to duplicate consistently

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Changing participant role of registered participant
November 26, 2009, 08:58:54 pm
Quote
Participant 1 registers Participants 2-5. When I batch edit Participant 1-3, but only change the status for Participant 1, Participants 4-5 follow the change!

If I am not wrong, It is expected behavior.

When you change the status of primary participant, additional participant status automatically get changed.

But If you change status of only additional participant, primary participant status is not going to change.

kiran
You Are Designed To Choose... Defined By Choice.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Changing participant role of registered participant
November 26, 2009, 09:10:22 pm
Quote
Where is the code for this? Maybe I can look at it and see what might trigger it?

go to  CRM/Event/BAO/Participant.php line around 879
do check "transitionParticipants( )" function.

This function is handling :
1. Status change logic.
2. Trigger mails for status change.
3. Create activities.

kiran
You Are Designed To Choose... Defined By Choice.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Changing participant role of registered participant
November 27, 2009, 04:22:57 pm
Kiran is correct in general, but I don't think we are being completely consistent about this AND I think there are some status changes where the secondary participants should NOT follow (inherit) change to primary participant status (notably the Registered -> Attended, or Registered -> No-show changes).

We have described the general business rule here and we are running some tests and tracking results here:

http://wiki.civicrm.org/confluence/display/CRM/Testing+Participant+Status+Updates+for+Secondary+Registrations
Protect your investment in CiviCRM by  becoming a Member!

sykong

  • Guest
Re: Changing participant role of registered participant
November 28, 2009, 09:55:32 am
Seems like there could be 2 issues?

1. Secondary participants should not inherit some status changes

2. Based on the code in 3.0.2 that I'm looking at it seems like secondary participants would always inherit status changes... but this is not happening... From my sql records, it seems like in some cases, the updateParticipantStatus function is used instead (because register_date remains the same as the secondary participants even though the status for the primary and secondary participants are different)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Changing participant role of registered participant
November 28, 2009, 10:56:24 am
I've flagged your comment in the issue. Thx.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Changing participant role of registered participant

This forum was archived on 2017-11-26.