From: Davide Franco Date: Wed, 29 Dec 2010 12:02:12 +0000 (+0100) Subject: bacula-web: Fixed typo in last 24 hours job status graph X-Git-Tag: Release-5.2.1~564 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7e1dbe5cb7995514cc0a3ec1e52e4bd09e14d876;p=bacula%2Fbacula bacula-web: Fixed typo in last 24 hours job status graph - From Completed with errors to Terminated with errors --- 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 ) );