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

Fix fatal error when selecting a $0 price option in change fee selection #11934

Merged
merged 1 commit into from
Apr 4, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Apr 4, 2018

Overview

Fix fatal error when changing event fee selection from a price option with a fee to a $0 option

Before

Fatal error if I change option from tiny tots to 'none' in the first field

screenshot 2018-04-04 17 59 17

After

Fatal error gone

Technical Details

The code for creating a new price option creates a new financial transaction but when choosing a $0 price option it fails as the api does not accept $0. Skip creation if $0

Comments

@monishdeb I think we probably should push this into the rc - was trying to replicate CRM-17267 & hit this


The code for creating a new price option creates a new financial transaction but when choosing a /bin/bash price option
it fails as the api does not accept /bin/bash EntityFinancialTrxn, skip if /bin/bash
@monishdeb
Copy link
Member

@eileenmcnaughton here's my screencast where I was unable to replicate the issue:
test-multiple-before

Did I miss something?

@eileenmcnaughton
Copy link
Contributor Author

here is what I see
fatal

@eileenmcnaughton eileenmcnaughton changed the base branch from 5.0 to master April 4, 2018 10:16
@eileenmcnaughton
Copy link
Contributor Author

@monishdeb I've switched to master - feel like we should get it into 5.1 rc but not aim for 5.0.

@monishdeb
Copy link
Member

Able to replicate the issue and it correctly fixes the issue.

@monishdeb monishdeb merged commit 4208f0f into civicrm:master Apr 4, 2018
@eileenmcnaughton eileenmcnaughton deleted the fees branch April 4, 2018 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants