MantisBT: master ef2628e1

Author Committer Branch Timestamp Parent
dregad dregad master 2016-05-24 02:27 master 4d46f8e3
Affected Issues  0020727: Error 1100 (issue not found) in my_view_page
Changeset

Let Timeline handle non-existing bugs

If an history entry refers to a bug that does not exist in the database,
history_get_event_from_row() throws application error 1100.

Even though it is not a normal situation to find orphan records in the
history table, the overhead of verifying a bug's existence at the
beginning of the loop is negligible, so it doesn't hurt to add the extra
bug_exists() check.

Fixes 0020727

mod - core/history_api.php Diff File