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) »
  • On Waitlist not working for paid events
Pages: [1]

Author Topic: On Waitlist not working for paid events  (Read 1021 times)

petbos157

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
On Waitlist not working for paid events
February 11, 2014, 06:55:37 am
I've an event with a fee and a max. numbers of subscribtions and the waiting list options enabled.
When my event is full, i've got the warning on the event subscription that the event is full but they will be put on the waitinglist.
But when the visitor fills-up and submits the event form,  the visitor came to thesame event form and he isn't put on the waitinglist.

What can be wrong with this.
With an event that is configured without a fee, the waitinglist-workflow is working well.
Is there something changed between the versions ?
Any help or tips are welcome.

I'm using CiviCRM 4.4.3 on Drupal 7

Best regards,
« Last Edit: February 11, 2014, 07:48:14 am by petbos157 »

amschaal

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress
  • MySQL version: 5.3.3
  • PHP version: 5.1.69
Re: On Waitlist not working for paid events
February 11, 2014, 11:53:29 am
There is another thread pointing out this problem, but as of now, no solution has been posted:
http://forum.civicrm.org/index.php/topic,30689.msg131591.html

amschaal

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress
  • MySQL version: 5.3.3
  • PHP version: 5.1.69
Re: On Waitlist not working for paid events
February 11, 2014, 06:22:04 pm
It seems that the problem has something to do with the registration form including the payment fields, even when waitlisted.  You can test this by commenting out a line of code for error checking in
CRM / Event / Form / Registration / Register.php:

static function formRule($fields, $files, $self) {
....
  if ($self->_values['event']['is_monetary']) {
    if (empty($self->_requireApproval) && $fields['amount'] > 0 && !isset($fields['payment_processor'])) {
      $errors['payment_processor'] = ts('Please select a Payment Method'); //comment this line out
    }
  ....
  }
....
}

Can anyone figure out why payment processor and fee fields are being included when registering for the waitlist?

Adam

amschaal

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress
  • MySQL version: 5.3.3
  • PHP version: 5.1.69
Re: On Waitlist not working for paid events
February 14, 2014, 03:34:18 pm
I've opened an issue on github with my attempted solution:
http://github.com/civicrm/civicrm-core/issues/2527

krypto

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 5
  • IT guy for @bhahumanists. Running Civi on WP.
    • British Humanist Association
  • CiviCRM version: 4.5.8
  • CMS version: WordPress 4.x
  • MySQL version: 5.5.x
  • PHP version: 5.5.x
Re: On Waitlist not working for paid events
February 15, 2014, 12:58:26 pm
@amschaal - thanks for this fix! Just solved a big problem for me after upgrading to 4.4.4.

amschaal

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress
  • MySQL version: 5.3.3
  • PHP version: 5.1.69
Re: On Waitlist not working for paid events
February 18, 2014, 11:14:17 am
I'm glad it could help someone!  Hopefully it (or a similar fix) will get into the next release so there won't be a need to patch again after the next upgrade.

petbos157

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
Re: On Waitlist not working for paid events
February 19, 2014, 08:13:20 am
@amschaal - even a big thanks from me. I hope this bugfix will be in the next release.

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Re: On Waitlist not working for paid events
March 06, 2014, 11:44:31 pm
The github link for the patch above gives a 404 - could you post it here or somewhere else, perhaps?

amschaal

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress
  • MySQL version: 5.3.3
  • PHP version: 5.1.69
Re: On Waitlist not working for paid events
March 10, 2014, 04:07:40 pm
For some reason the original github issue is no longer available.  I've recreated it as a pull request:
https://github.com/civicrm/civicrm-core/pull/2641
Issue page:
http://issues.civicrm.org/jira/browse/CRM-14225

cvoogt

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 3.1.4
  • CMS version: Joomla 1.5.25
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: On Waitlist not working for paid events
March 12, 2014, 11:50:06 am
I have applied this patch and it works great - let's please include it in the next release.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • On Waitlist not working for paid events

This forum was archived on 2017-11-26.