From: Marcin Haba Date: Sun, 13 Dec 2015 11:21:08 +0000 (+0100) Subject: baculum: Fix jobs count in job list X-Git-Tag: Release-7.4.0~138 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12d7bf04b63d31f00923a8e63f7b2f193c359482;p=bacula%2Fbacula baculum: Fix jobs count in job list --- diff --git a/gui/baculum/protected/Pages/API/Jobs.php b/gui/baculum/protected/Pages/API/Jobs.php index 4b7ea8d308..bc8b45ea09 100644 --- a/gui/baculum/protected/Pages/API/Jobs.php +++ b/gui/baculum/protected/Pages/API/Jobs.php @@ -24,15 +24,8 @@ class Jobs extends BaculumAPI { public function get() { $limit = intval($this->Request['limit']); $jobs = $this->getModule('job')->getJobs($limit); - $allowedJobs = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.jobs'), $this->user)->output; - $jobsOutput = array(); - foreach($jobs as $job) { - if(in_array($job->name, $allowedJobs)) { - $jobsOutput[] = $job; - } - } - $this->output = $jobsOutput; + $this->output = $jobs; $this->error = JobError::ERROR_NO_ERRORS; } } -?> \ No newline at end of file +?>