From 7e1dbe5cb7995514cc0a3ec1e52e4bd09e14d876 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Wed, 29 Dec 2010 13:02:12 +0100 Subject: [PATCH] bacula-web: Fixed typo in last 24 hours job status graph - From Completed with errors to Terminated with errors --- gui/bacula-web/bweb.inc.php | 6 +++--- gui/bacula-web/index.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/bacula-web/bweb.inc.php b/gui/bacula-web/bweb.inc.php index 2d584c30ce..8087e35983 100644 --- a/gui/bacula-web/bweb.inc.php +++ b/gui/bacula-web/bweb.inc.php @@ -492,9 +492,9 @@ class Bweb extends DB { $where = "AND JobStatus = 'T' "; $label = "Completed"; break; - case 'completed_errors': - $where = "AND JobStatus = 'E' "; - $label = "Completed with errors"; + case 'terminated_errors': + $where = $interval_where . "JobStatus = 'E' "; + $label = "Terminated with errors"; break; case 'failed': $where = "AND JobStatus = 'f' "; diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index cb54d310bf..c4736bacd2 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -110,7 +110,7 @@ $smarty->assign( 'elapsed_jobs', $dbSql->Get_ElapsedTime_Job() ); // Last 24 hours Job status graph $data = array(); -$status = array( 'completed', 'completed_errors', 'failed', 'waiting', 'created', 'running', 'error' ); +$status = array( 'completed', 'terminated_errors', 'failed', 'waiting', 'created', 'running', 'error' ); foreach( $status as $job_status ) { array_push( $data, $dbSql->GetJobsStatistics( $job_status ) ); -- 2.39.2