From 49de4510d95240129ee9782fb2c4a056200dce6c Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Wed, 30 Dec 2015 00:00:02 +0100 Subject: [PATCH] baculum: Fix run job again button --- gui/baculum/protected/Portlets/JobConfiguration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.5