From: Marcin Haba Date: Tue, 29 Dec 2015 23:00:02 +0000 (+0100) Subject: baculum: Fix run job again button X-Git-Tag: Release-7.4.0~75 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=49de4510d95240129ee9782fb2c4a056200dce6c;p=bacula%2Fbacula baculum: Fix run job again button --- diff --git a/gui/baculum/protected/Portlets/JobConfiguration.php b/gui/baculum/protected/Portlets/JobConfiguration.php index 2a852a61d3..b883360af8 100644 --- a/gui/baculum/protected/Portlets/JobConfiguration.php +++ b/gui/baculum/protected/Portlets/JobConfiguration.php @@ -183,11 +183,11 @@ class JobConfiguration extends Portlets { $params['fileset'] = $this->getResourceName('fileset', $jobshow); $params['clientid'] = $jobdata->clientid; $storage = $this->getResourceName('storage', $jobshow); - if (is_object($storage)) { + if (!is_null($storage)) { $params['storageid'] = $this->getStorageByName($storage)->storageid; } $pool = $this->getResourceName('pool', $jobshow); - if (is_object($pool)) { + if (!is_null($pool)) { $params['poolid'] = $this->getPoolByName($pool)->poolid; } } else {