Closed (fixed)
Project:
Course
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2015 at 17:34 UTC
Updated:
17 Feb 2016 at 16:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
kyoder commentedMy first patch was wrong. The problem wasn't that the course_grade var wasn't being checked for empty, that was already happening (the source of the var was already being checked). The problem was that an empty string equates to 0 so it was passing the check. I've updated the patch to simply check that course_grade (via its source) is either not empty or equates to 0 as a string. In other words, I just put 0 inside quotes.
Comment #6
djdevinComment #7
djdevin