MantisBT: master-1.3.x 6d6cd558

Author Committer Branch Timestamp Parent
cproensa dregad master-1.3.x 2015-09-17 10:03 master-1.3.x 0b175c81
Affected Issues  0020121: bug_cache_database_result does not update bugnote statistics
Changeset

Force storing empty bugnote statistics

(1) When a bug has no bugnotes, or visible ones, force storing a 'false'
value as bugnote stats in bug cache, to avoid querying the database again
later.

(2) Additionally, when the function bug_cache_database_result is called
with a stats array parameter, and the bug has already been cached, force
the creation of the stats index. Previously this wasn't possible if the
bug had already been cached without the bugnote stats.

Fixes 0020121

mod - core/bug_api.php Diff File
mod - core/filter_api.php Diff File