From: Marcin Haba Date: Wed, 29 Mar 2023 08:00:49 +0000 (+0200) Subject: baculum: Fix listing restore job in job endpoints X-Git-Tag: Release-13.0.3~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2967f76f6563051c1db3ce379c4acb751c336a7;p=thirdparty%2Fbacula.git baculum: Fix listing restore job in job endpoints --- diff --git a/gui/baculum/protected/API/Modules/JobManager.php b/gui/baculum/protected/API/Modules/JobManager.php index a8c4be49e..9c0ed5af4 100644 --- a/gui/baculum/protected/API/Modules/JobManager.php +++ b/gui/baculum/protected/API/Modules/JobManager.php @@ -159,8 +159,8 @@ Pool.Name as pool, FileSet.FileSet as fileset FROM Job JOIN Client USING (ClientId) -JOIN Pool USING (PoolId) -JOIN FileSet USING (FilesetId)' +LEFT JOIN Pool USING (PoolId) +LEFT JOIN FileSet USING (FilesetId)' . $where['where'] . $order . $limit . $offset; $statement = Database::runQuery($sql, $where['params']);