Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/issues/74 - 'Price Set Details for Event Participants' gives DB … #12024

Merged
merged 1 commit into from
May 15, 2018

Conversation

yashodha
Copy link
Contributor

@yashodha yashodha commented Apr 24, 2018

…error if the price fields are disabled.

Overview

Steps to replicate:

  1. Create a price set and associate with an event.
  2. Register a participant with the event.
  3. Disable the price fields.
  4. Go to Custom Searches > Price Set Details for Event Participants, search with the said event.

It throws DB error

Before

price_before

After

price_after

https://lab.civicrm.org/dev/core/issues/74

@seamuslee001
Copy link
Contributor

Jenkins re test this please

Copy link
Contributor

@jitendrapurohit jitendrapurohit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to replicate the error but it wasn't fixed for me after the applying the patch. I disabled the price field and the screenshot pasted above is shown as below -

image

@eileenmcnaughton
Copy link
Contributor

I'm going to merge this - it's not clear it fixes the problem but it does make sense NOT to do that query if $values is empty.

I've let this change squeak through due to it only adding an 'if' that I believe would never be a problem. However, it really should have had
a) a unit test
b) a timely response to the reviewer

I won't close the issue because it's not clear it's fixed

@yashodha @nganivet - you can mark one off your list of PRs to work through review or close

@eileenmcnaughton eileenmcnaughton merged commit 062b292 into civicrm:master May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants