Fundingbar crashes on projects with pledged money without budget

Bug #383071 reported by Daniel Karlsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Akvo RSR
Fix Released
Undecided
Daniel Karlsson

Bug Description

On rare occasions a project might end up with pledged money without a budget. This causes every instance of the fundingbar to crash in the template layer. The reason is that we are using division to get a percentage and are dividing with zero on these occasions. Possible solution is to just show the fundingbar when there is a budget.

03-Sept-2009, bethwaaa: http://test.akvo.org/rsr/project/69/
Funding is 2 euro from org, no budget; Raised shows 2, Still Needed shows -2. A case for us to check w/ decimalisation.

Tags: funding
description: updated
tags: added: funding
Revision history for this message
Daniel Karlsson (daniel-fraction4) wrote :

Template layer problem.

Changed in akvo.rsr:
assignee: nobody → Daniel Karlsson (daniel-fraction4)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.