]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed wrong SQL query for failed jobs
authorDavide Franco <bacula-dev@dflc.ch>
Wed, 19 Jan 2011 09:37:21 +0000 (10:37 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:36 +0000 (14:43 +0200)
 - Added <E> job status to failed filter in jobs.php and bweb.inc.php

gui/bacula-web/bweb.inc.php
gui/bacula-web/jobs.php

index c3ab7cc6af4072c3115d572255d95f49bd4eb5ac..a3b4f0a2fdd8de3b87ed75fa59a881f98caca7b6 100644 (file)
@@ -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' ";
index 4a74a3246958806c594f069e39036d2df7b9fb59..5d126ec7134a854e8d8fb31c7274554ef74e0ef1 100644 (file)
@@ -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' ";