Issue Query: inconsistency between spent_hours sum and sum of shown spent_hours values
Steps to reproduce:
- Create two projects A and B, enable the spent time module only in A.
- Create issues in A and log time for them.
- Move one of these issues to B.
- go to /issues, configure filters so all issues created in step two are shown, add the Spent time column and also tick the Spent time checkbox in the Totals row.
The Spent time sum shown above the table is the sum of the time logged in step two, though the issue moved to B shows 0 in the Spent Time column. (because the module is disabled in Project B and thus it's time entries aren't
The total should be the sum of the values shown for each issue in the corresponding column.
Easiest way to fix it would certainly be to fix the totals computation so it only includes hours from visible time entries. In addition to the module enabled / disabled situation described above, it might also be that, with an enabled spent time module in B, but given I do not have permission to see time entries in B, the moved issues' time entries are still counted. This issue would be fixed with above solution as well I think.
The sum should (preferably only if we know it isn't complete) be amended with a hint (footnote or something else) informing the user that this sum is (or possibly is) not the complete sum due to permissions / modules not being enabled).