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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix budgets zero single view #10892
Fix budgets zero single view #10892
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR contains the work done in #10855 .
Please run on your local environment:
git checkout develop
git pull origin develop
git branch -D fix/budgets-zero-single-view
git checkout -b fix/budgets-zero-single-view
git cherry-pick 2dc51df20219d7cdb2cc6e99c4627da5182799ce
git push origin -f
@alecslupu thanks, I noticed when I pushed I had a previous PR's work following behind. With regards to your suggestion on updating the patch, I have committed your suggestion. Thanks very much for your contribution. |
@greenwoodt , Please see my last comment: Run in a terminal ( console ) the following commands.
|
4123e7a
to
b90fae6
Compare
hi @alecslupu I saw your initial comment ran that command and your new suggested one on my machine. Apologies I had to recommit your commented changes previously. The PR should be updated and ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes made ready for review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ( tested locally and works as advertised )
馃帺 What? Why?
Component: Budgets
Budgets that were set to zero as an admin in the view would crash when a user wished to view them on the front end facing view.
A patch has been created in decidim-budgets/apps/models/decidim/budgera/order.rb in a form of a condition that takes this into account if the user wants a zero budget, allowing admins to view their budgets set at zero.
The validation has also been updated to take this into account within decidim-budgets/app/forms/decidim/budgets/admin/budget_form.rb
馃搶 Related Issues
Link your PR to an issue
Testing
Rspec tests have also been created for patch, currently raking green for the following:
馃摲 Screenshots