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) »
  • Can't make participant role not counted in event totals
Pages: [1]

Author Topic: Can't make participant role not counted in event totals  (Read 1053 times)

anton

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
Can't make participant role not counted in event totals
August 03, 2010, 06:32:56 am
As subject, I'm using v3.2.0 and when I try and edit a participant role and uncheck the "Counted" box, it tells me the changes are saved but when I go to edit it again the box is ticked.

The CiviEvent dashboard shows that they are counted.

I was able to relpicate the bug on the demo site.

MichaƂ Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Can't make participant role not counted in event totals
August 04, 2010, 02:32:49 am
Anton,

It's a bug, thanks for reporting it. I just checked in the fix, it'll be available in 3.2.1. If you want to fix the issue until then on your local install, here's the patch:

$ svn diff CRM/Admin/Form/Options.php
Index: CRM/Admin/Form/Options.php
===================================================================
--- CRM/Admin/Form/Options.php   (revision 29008)
+++ CRM/Admin/Form/Options.php   (working copy)
@@ -326,7 +326,7 @@
             }
             
             // set db value of filter in params if filter is non editable
-            if ( $this->_id && !array_key_exists( 'filter', $params ) ) {
+            if ( $this->_id && !array_key_exists( 'filter', $params ) && !$this->_gName == 'participant_role' ) {
                 $params['filter'] = CRM_Core_DAO::getFieldValue( 'CRM_Core_DAO_OptionValue', $this->_id, 'filter', 'id' ) ;
             }
             



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

My absolute favourite: Wordpress Integration!.

Donate Now!

anton

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
Re: Can't make participant role not counted in event totals
August 04, 2010, 08:45:11 am
The patch worked great - thanks a lot!

Kirk

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7.39
  • MySQL version: 5.5.44
  • PHP version: 5.6.13
Re: Can't make participant role not counted in event totals
November 14, 2013, 08:33:43 am
If this patch ever did work, it doesn't any more (v4.4.1). I've created an issue (CRM-13761) and made a pull request (1985).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Can't make participant role not counted in event totals

This forum was archived on 2017-11-26.