Skip to content

Commit

Permalink
Merge pull request #4546 from consul/budget-wizard-fix
Browse files Browse the repository at this point in the history
Add missing attribute to budget strong params
  • Loading branch information
javierm committed Jun 11, 2021
2 parents eb733d1 + 7c475d4 commit 9dc2034
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/budgets_wizard/budgets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def budget_params
end

def allowed_params
valid_attributes = [:currency_symbol, :voting_style, administrator_ids: [], valuator_ids: [],
image_attributes: image_attributes]
valid_attributes = [:currency_symbol, :voting_style, :main_link_url, administrator_ids: [],
valuator_ids: [], image_attributes: image_attributes]

valid_attributes + [translation_params(Budget)]
end
Expand Down
3 changes: 3 additions & 0 deletions spec/system/admin/budgets_wizard/budgets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
click_button "Create new budget"
click_link "Create multiple headings budget"

fill_in "Name", with: "M30 - Summer campaign"
fill_in "Text on the link", with: "Participate now!"
fill_in "The link takes you to (add a link)", with: "https://consulproject.org"
fill_in "Name", with: "M30 - Summer campaign"
click_button "Continue to groups"

Expand Down

0 comments on commit 9dc2034

Please sign in to comment.