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) »
  • Administrative add to Waitlist -> Registration Confirmation Email
Pages: [1]

Author Topic: Administrative add to Waitlist -> Registration Confirmation Email  (Read 1732 times)

zutroyquixote

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.2.3
  • PHP version: 5.2.16
Administrative add to Waitlist -> Registration Confirmation Email
April 30, 2011, 08:01:43 pm
I am currently experiencing the following issue in my environment, however cannot reproduce on sandbox/demo because they are not set up for outbound email.

Consider an event that is full and is waitlist enabled.  When an administrator wants to add someone to the wait list (using civicrm/participant/add) they can select the status of "On waitlist".  If you select the option to send a confirmation email, the email looks like the standard event confirmation email and makes no mention of the waitlisted status (as compared to the same user registering themselves for the waitlist online, they properly get an email indicating they are on the waitlist).

Can anyone else reproduce this?

Further, regardless of whether or not someone can reproduce, I am trying to decipher where in the code (in CRM/Event/Form/Participant.php ?) this is happening but haven't made much progress.

Any insight is appreciated.

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: Administrative add to Waitlist -> Registration Confirmation Email
May 01, 2011, 07:15:17 am

the code is here:

CRM/Event/BAO/Participant.php, function transitionParticipants

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

zutroyquixote

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.2.3
  • PHP version: 5.2.16
Re: Administrative add to Waitlist -> Registration Confirmation Email
May 01, 2011, 08:26:10 pm
I'm not sure this is quite the place - am I wrong in thinking that this method is only executed when the existing participant record is updated (as opposed to a fresh create with the status = "On waitlist")?

From what I can see, the $isOnWaitlist variable does not get assigned for use by the message template.  I tried force injecting this value to true in the transitionParticipants method with no effect.

After doing some more digging it appears to be an issue in the CRM/Event/Form/Participant.php postProcess() function.  This function also generates an email based on the offline event registration message template and does not assign the variable $isOnWaitlist. 

I found that if I add the following lines to the CRM/Event/Form/Participant.php postProcess() function just before the email is sent (approx line 1523) I get the desired effect:

$waitlistStatusId = array_search( 'On waitlist',CRM_Event_PseudoConstant::participantStatus() );
$this->assign( 'isOnWaitlist', $params['status_id'] == $waitlistStatusId);

Should this be considered a bug?  Am I still missing something?

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Administrative add to Waitlist -> Registration Confirmation Email
May 02, 2011, 12:42:34 am
zutroyquixote :
We 'll investigate this and file an issue shortly.

Thanks for catching this!
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Administrative add to Waitlist -> Registration Confirmation Email
May 08, 2011, 11:09:36 pm
zutroyquixote :
I have filed http://issues.civicrm.org/jira/browse/CRM-8060 for the same.

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Administrative add to Waitlist -> Registration Confirmation Email

This forum was archived on 2017-11-26.