From: Davide Franco Date: Wed, 19 Jan 2011 09:37:21 +0000 (+0100) Subject: bacula-web: Fixed wrong SQL query for failed jobs X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=19fb9f5c62e788c5ccec4d6522fabba04114b94f;p=bacula%2Fbacula bacula-web: Fixed wrong SQL query for failed jobs - Added job status to failed filter in jobs.php and bweb.inc.php --- diff --git a/gui/bacula-web/bweb.inc.php b/gui/bacula-web/bweb.inc.php index c3ab7cc6af..a3b4f0a2fd 100644 --- a/gui/bacula-web/bweb.inc.php +++ b/gui/bacula-web/bweb.inc.php @@ -366,7 +366,7 @@ class Bweb extends DB { $where_status = "JobStatus = 'T' "; break; case 'failed': - $where_status = "JobStatus = 'f' "; + $where_status = "JobStatus IN ('f','E') "; break; case 'canceled': $where_status = "JobStatus = 'A' "; diff --git a/gui/bacula-web/jobs.php b/gui/bacula-web/jobs.php index 4a74a32469..5d126ec713 100644 --- a/gui/bacula-web/jobs.php +++ b/gui/bacula-web/jobs.php @@ -53,7 +53,7 @@ $query .= "WHERE Job.JobStatus = 'T' "; break; case 'failed': - $query .= "WHERE Job.JobStatus = 'f' "; + $query .= "WHERE Job.JobStatus IN ('f','E') "; break; case 'canceled': $query .= "WHERE Job.JobStatus = 'A' ";