From 5aa8ef50c6e0be69967c1e062bce9b5542f5a956 Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Sun, 3 Dec 2017 19:56:10 +0000 Subject: [PATCH] When displaying a list of sanity test failures, be sure to include the link to the failure message. --- classes/sanity_test_failures.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/sanity_test_failures.php b/classes/sanity_test_failures.php index 4c71ef4c..c5e564ec 100644 --- a/classes/sanity_test_failures.php +++ b/classes/sanity_test_failures.php @@ -84,7 +84,9 @@ function CreateHTML() { $DisplayCommit->SetDaysMarkedAsNew($this->DaysMarkedAsNew); $DisplayCommit->SetUserID($this->UserID); $DisplayCommit->SetWatchListAsk($this->WatchListAsk); - $DisplayCommit->ShowLinkToSanityTestFailure = false; + if ($this->MessageID == '') { + $DisplayCommit->ShowLinkToSanityTestFailure = true; + } $RetVal = $DisplayCommit->CreateHTML();