Ticket #354 (closed defect: fixed)
Counting studies is sometimes incorrect
|Reported by:||robert@…||Owned by:||robert@…|
The nice graph on the home screen counts the number of studies. But this number is sometimes incorrect. See the screenshot (-1 studies).
This probably has to do with the fact that the method using Criteria in Study (countReadableStudies for example) returns an incorrect number. The same problem arose with the Study.giveReadableStudies() method. That method sometimes returned the same study multiple times (maybe because of sql joins in hibernate?). I used a unique() filter to solve that problem, but I don't think that will work with criteria.count().