From 896b839c27bef8a40b429382dd28bd710446acd5 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 31 Aug 2018 12:02:38 +0200 Subject: [PATCH] Bugfixes --- runs.php | 4 ++-- templates/runs.html.twig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runs.php b/runs.php index d73da89..7885a89 100644 --- a/runs.php +++ b/runs.php @@ -37,8 +37,8 @@ $jobName = $jobnameResult[0]['name']; $runsForJobQry = "SELECT runs.*, jobs.name FROM runs, jobs WHERE runs.job = jobs.jobID AND runs.job = ?"; $allruns = true; -if(!isset($_GET['allruns']) || $_GET['allruns'] == 1) { - $runsForJobQry .= " AND runs.statuscode = jobs.expected"; +if(!(isset($_GET['allruns']) && $_GET['allruns'] == 1)) { + $runsForJobQry .= " AND runs.statuscode <> jobs.expected"; $allruns = false; } $runsForJob = $db->prepare($runsForJobQry); diff --git a/templates/runs.html.twig b/templates/runs.html.twig index 47b85a1..aa5ff70 100644 --- a/templates/runs.html.twig +++ b/templates/runs.html.twig @@ -5,7 +5,7 @@ {% if allruns %}

Only show failed runs

{% elseif not allruns %} -

Only all failed runs

+

Show all runs

{% endif %}
{% for run in runs %}