Fixing bug in flatview using gradebook categories -refs #6062
Merge pull request #126 from ycastillo/6062

6062