Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Merge branch 'bareos-17.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Sep 21, 2017
2 parents 0fb8ce5 + c25e550 commit 89bbfb7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Expand Up @@ -7,10 +7,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added

### Changed

### Removed

## [17.2.4-rc1]

### Added
- Job Totals Dashboard Widget
- Running Jobs Dashboard Widget (requires core commit eae7ad953ed5c92cee562c2246719e073220603c for proper functionality)
- Running Jobs Dashboard Widget
- Bootstrap Table Extension
- Job submodule run customized jobs
- Job Module: Used Volumes Widget
- New configuration.ini variable (autorefresh_interval) introduced
to define the dashboard refresh interval (default: 60sec.)
- Slovak localization
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -22,5 +22,5 @@ The Bareos project offers two mailing lists: bareos-users and bareos-devel.

[CHANGELOG]: ./CHANGELOG.md
[LICENSE]: ./LICENSE
[version-badge]: https://img.shields.io/badge/version-master-blue.svg
[version-badge]: https://img.shields.io/badge/version-17.2.4-blue.svg
[license-badge]: https://img.shields.io/badge/license-AGPL--3.0-blue.svg
6 changes: 3 additions & 3 deletions module/Job/src/Job/Model/JobModel.php
Expand Up @@ -62,7 +62,7 @@ public function getJobs(&$bsock=null, $jobname=null, $days=null)
return $error['result']['error'];
} else {
$jobs = \Zend\Json\Json::decode($result, \Zend\Json\Json::TYPE_ARRAY);
if ( empty($jobs['result']['jobs']) || is_null($jobs['result']['jobs']) ) {
if ( empty($jobs['result']['jobs']) && $jobs['result']['meta']['range']['filtered'] === 0 ) {
return $retval;
} else {
$retval = array_merge($retval, $jobs['result']['jobs']);
Expand Down Expand Up @@ -117,7 +117,7 @@ public function getJobsByStatus(&$bsock=null, $jobname=null, $status=null, $days
return $error['result']['error'];
} else {
$jobs = \Zend\Json\Json::decode($result, \Zend\Json\Json::TYPE_ARRAY);
if ( empty($jobs['result']['jobs']) || is_null($jobs['result']['jobs']) ) {
if ( empty($jobs['result']['jobs']) && $jobs['result']['meta']['range']['filtered'] === 0 ) {
return array_reverse($retval);
} else {
$retval = array_merge($retval, $jobs['result']['jobs']);
Expand Down Expand Up @@ -174,7 +174,7 @@ public function getJobLog(&$bsock=null, $id=null)
}
else {
$log = \Zend\Json\Json::decode($result, \Zend\Json\Json::TYPE_ARRAY);
if ( empty($log['result']['joblog']) || is_null($log['result']['joblog']) ) {
if ( empty($log['result']['joblog']) && $log['result']['meta']['range']['filtered'] === 0 ) {
return $retval;
} else {
$retval = array_merge($retval, $log['result']['joblog']);
Expand Down
2 changes: 1 addition & 1 deletion module/Media/src/Media/Model/MediaModel.php
Expand Up @@ -49,7 +49,7 @@ public function getVolumes(&$bsock=null)
return $error['result']['error'];
} else {
$volumes = \Zend\Json\Json::decode($result, \Zend\Json\Json::TYPE_ARRAY);
if ( empty($volumes['result']['volumes']) || is_null($volumes['result']['volumes']) ) {
if ( empty($volumes['result']['volumes']) && $volumes['result']['meta']['range']['filtered'] === 0 ) {
return $retval;
} else {
$retval = array_merge($retval, $volumes['result']['volumes']);
Expand Down
2 changes: 1 addition & 1 deletion module/Pool/src/Pool/Model/PoolModel.php
Expand Up @@ -117,7 +117,7 @@ public function getPoolMedia(&$bsock=null, $pool=null)
return $error['result']['error'];
} else {
$media = \Zend\Json\Json::decode($result, \Zend\Json\Json::TYPE_ARRAY);
if ( empty($media['result']['volumes']) || is_null($media['result']['volumes']) ) {
if ( empty($media['result']['volumes']) && $media['result']['meta']['range']['filtered'] === 0 ) {
return $retval;
} else {
$retval = array_merge($retval, $media['result']['volumes']);
Expand Down

0 comments on commit 89bbfb7

Please sign in to comment.