Skip to content

Commit

Permalink
Fix error on invalid form when updating the meeting registrations (#4319
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mrcasals committed Oct 19, 2018
1 parent 0aabda1 commit 4d04b8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Decidim::User.where(**search for old subscribed users**).update(newsletter_notif
- **decidim-core**: Fix newsletter opt-in migration [\#4198](https://github.com/decidim/decidim/pull/4198)
- **decidim-core**: Hide weird flash message [\#4235](https://github.com/decidim/decidim/pull/4235)
- **decidim-core**: Fix newsletter subscription checkbox always being unchecked [\#4238](https://github.com/decidim/decidim/pull/4238)
- **decidim-core**: Don't error when the meeting registrations are updated with invalid data [\#4319](https://github.com/decidim/decidim/pull/4319)
- **decidim-core**: Thread safe locale switching [\#4237](https://github.com/decidim/decidim/pull/4237)
- **decidim-core**: Don't crash when given wrong format at pages [\#4314](https://github.com/decidim/decidim/pull/4314)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def update
enforce_permission_to :update, :meeting, meeting: meeting

@form = MeetingRegistrationsForm.from_params(params).with_context(current_organization: meeting.organization, meeting: meeting)
@validation_form = ValidateRegistrationCodeForm.new

UpdateRegistrations.call(@form, meeting) do
on(:ok) do
Expand Down

0 comments on commit 4d04b8f

Please sign in to comment.