Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Timeline handle non-existing bugs #780

Merged
merged 2 commits into from May 29, 2016
Merged

Conversation

dregad
Copy link
Member

@dregad dregad commented May 24, 2016

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 #20727

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 #20727
@dregad dregad merged commit ef2628e into mantisbt:master May 29, 2016
@dregad dregad deleted the fix-20727 branch August 15, 2016 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant