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

dev/core#1240 Ensure that Options are not duplicated when saving a co… #15245

Merged
merged 1 commit into from
Sep 8, 2019

Conversation

seamuslee001
Copy link
Contributor

…ntribution or event page when specifying the options

Overview

This fixes an issue where re-saving the amounts screen for a contribution page or the fees one for an event page where your specifying the fees or amounts on that screen rather than using an already generated price set causes the options to be duplicated

Before

Options are duplicated

After

Options are not duplicated

Note that this only affects the RC not 5.17

ping @mlutfy @eileenmcnaughton

@civibot
Copy link

civibot bot commented Sep 7, 2019

(Standard links)

@civibot civibot bot added the 5.18 label Sep 7, 2019
'label' => 'Contribution Amount',
'html_type' => 'Radio',
'financial_type_id' => 1,
'option_label' => [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the strange format that is used when saving the fees / options from the UI

…ntribution or event page when specifying the options
@mlutfy
Copy link
Member

mlutfy commented Sep 8, 2019

I applied this patch on our production sites and so far so good.

I also did a fair amount of random testing on the PR test site, and it looks good too. I also tested non-quick pricesets.

+1 awesome responsiveness

+1 has tests

@eileenmcnaughton
Copy link
Contributor

merging based on @mlutfy testing

@eileenmcnaughton eileenmcnaughton merged commit 5407184 into civicrm:5.18 Sep 8, 2019
@eileenmcnaughton eileenmcnaughton deleted the lab_core_1240 branch September 8, 2019 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants