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) »
  • 4.1 Discount bug?
Pages: [1]

Author Topic: 4.1 Discount bug?  (Read 901 times)

e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
4.1 Discount bug?
February 16, 2012, 06:33:48 pm
NOTE: This issue seems to be fixed for version 4.1.1  My patch/explanation might help you out for a few days....

If I define a discount for an event, attempting to display the registration screen crashes the process and dumps the following:
Quote
Database Error Code: Unknown column 'label' in 'field list', 1054
Additional Details:
Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

        code => -19
       
[message] => DB Error: no such field
    [mode] => 16
    [debug_info] => SELECT  id, label 
 FROM civicrm_option_group
 
 WHERE (  civicrm_option_group.id = 94 ) 

The problem here is that the query is trying to select the "label" column from the option_group table.... and there is no such column! Changing the code to query for 'title' is the fix.

This is my patch for the file civicrm/CRM/Event/Form/Registration.php ... which seems to work beautifully.
Code: [Select]
749 - $optionGroupId, 'label');;
749 + $optionGroupId, 'title');;

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: 4.1 Discount bug?
February 16, 2012, 09:00:54 pm
mason :

This has been fixed here : https://fisheye2.atlassian.com/changelog/CiviCRM?cs=38847 and
will be available in 4.1.1

Thanks for catching this!
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) »
  • 4.1 Discount bug?

This forum was archived on 2017-11-26.