Closed dave-mills closed 12 months ago
I get latest code from dev branch. I can replicate the issue in my local env.
Testing in local env:
Screen shots:
I got latest code from this branch, the issue can be resolved by this branch. I think it is good to merge.
Bug report from user - when accessing the main organisation's 'show' page, they get a 500 error "division by zero".
Stack trace showed this as coming from the
Assessment
class =>getAdditionalScoreAttribute()
. It was assuming there was at least 1 additional criteria, even though the organisation in question doesn't have any.I added a check to make sure the organisation is using additional criteria and that there is at least 1 additionalCriteria entry for the organisation to fix the issue.
Screenshot