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

CRM-21764: Recurring Events without Price Set fail to save #11834

Closed
wants to merge 1 commit into from

Conversation

agilewarealok
Copy link
Contributor

@agilewarealok agilewarealok commented Mar 20, 2018

Overview

Steps to reproduce:

  1. Create a recurring event with a bit of recurrence
  2. Edit a specific event, update any field, such as the event description text field
  3. Save, select "only this event"

Before

Nothing happens, Event is not really saved. CRM/Core/Page/AJAX/RecurringEntity.php::updateModeAndPriceSet fails because it returns an empty array, causing the save action to fail without any errors or notices.

After

We update price set only if we have any which results in expected response from updateModeAndPriceSet of CRM/Core/Page/AJAX/RecurringEntity.php. Now event details are getting saved as expected.

Agileware Ref: CIVICRM-831


@eileenmcnaughton
Copy link
Contributor

Can you create a PR against 5.0.0 branch as well - I think I'd prefer to merge to the rc if we can confirm it's all good

@agilewarealok
Copy link
Contributor Author

@eileenmcnaughton
Created #11837

@eileenmcnaughton
Copy link
Contributor

closing as merged via 5.0

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