Project

General

Profile

Issue.visible.count not works for me after migration from 2.6 to 3.3

Added by pasquale [:dedalus] over 7 years ago

I have migrated redmine from 2.6 to 3.3. Now I have a plugin that not works. In previous versione this plugin list some custom query with an hyperlink text and show the count for each query listed. In the past I have always calculated the query count withbthis code

Issue.visible.count(:include=>[:status,:project],:conditions=>query.statement), where query is the generic query object. Now this code return always all issues count: I have missed some thing?
Thanks in advance.