]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed small bug in sql query
authorDavide Franco <bacula-dev@dflc.ch>
Mon, 11 Jul 2011 15:49:59 +0000 (17:49 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:22 +0000 (14:49 +0200)
gui/bacula-web/jobs.php

index 4e330f9c4f5ff80f52f9250d58a68aa9c8e268b8..3eeb9a575d7bb9d6e5a7502301b1dd728b312da0 100644 (file)
                        $query .= "WHERE Job.JobStatus IN ('F','S','M','m','s','j','c','d','t','p','C') ";
                break;
                case STATUS_COMPLETED:
-                       $query .= "WHERE Job.JobStatus IN ('T', 'E') ";
+                       $query .= "WHERE Job.JobStatus = 'T' ";
                break;
                case STATUS_FAILED:
-                       $query .= "WHERE Job.JobStatus = 'f' ";
+                       $query .= "WHERE Job.JobStatus = 'f', 'E' ";
                break;
                case STATUS_CANCELED:
                        $query .= "WHERE Job.JobStatus = 'A' ";