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) »
  • Suppressed payment fields cause error for events requiring approval
Pages: [1]

Author Topic: Suppressed payment fields cause error for events requiring approval  (Read 232 times)

Stuart Parker

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 2
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.63
  • PHP version: 5.2.14
Suppressed payment fields cause error for events requiring approval
March 04, 2015, 07:53:03 am
CRM-12279 suppressed the payment fields for registration where an event requires approval:
https://issues.civicrm.org/jira/browse/CRM-12279

However, when someone tries to register for an event, this causes an error on the next screen, which tries to display the fee:
Quote
Warning: Invalid argument supplied for foreach() in CRM_Event_Form_Registration_Confirm->buildQuickForm() (line286 of /xxx/sites/all/modules/civicrm/CRM/Event/Form/Registration/Confirm.php).

I have duplicated this error on the demo site by setting up an event "Requires approval". If you use the event link to try to register someone on the event "Requires approval" it comes up with this error.

I think it's better if the person registering can select the fee on the first registration screen, and this would avoid the error. It looks like removing "|| $this->_requireApproval" from line 97 of CRM/Event/Form/Registration/Register.php would sort it out?

If no-one objects to this, I'll raise an issue

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Suppressed payment fields cause error for events requiring approval

This forum was archived on 2017-11-26.