MantisBT: master 68c52650

Author Committer Branch Timestamp Parent
dregad dregad master 2020-09-02 08:46 master 3c840478
Affected Issues  0027217: bugnote_clear_cache() does not work properly
Changeset

Fix bugnote_clear_cache()

bugnote_clear_cache() only removed the note from $g_cache_bugnotes_by_id
if it has also been stored in $g_cache_bugnotes_by_bug_id, but failed in
the scenario where the bug-level cache has not been populated.

Adding a specific unset() call to ensure the bugnote is actually removed
from both caches.

Fixes 0027217

mod - core/bugnote_api.php Diff File