From: Marcin Haba Date: Tue, 4 Apr 2023 10:59:08 +0000 (+0200) Subject: baculum: Add job errors property to objects endpoint X-Git-Tag: Release-13.0.3~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed5c266682b6fc5921c58779992bd29145f0997d;p=thirdparty%2Fbacula.git baculum: Add job errors property to objects endpoint --- diff --git a/gui/baculum/protected/API/Modules/ObjectManager.php b/gui/baculum/protected/API/Modules/ObjectManager.php index d38bb9e21..61416107f 100644 --- a/gui/baculum/protected/API/Modules/ObjectManager.php +++ b/gui/baculum/protected/API/Modules/ObjectManager.php @@ -98,7 +98,7 @@ class ObjectManager extends APIModule $where = Database::getWhere($criteria); - $obj_record = 'Object.*, Job.Name as jobname '; + $obj_record = 'Object.*, Job.Name AS jobname, Job.JobErrors AS joberrors '; if ($view == self::OBJ_RESULT_VIEW_BASIC) { $obj_record = implode(',', $this->basic_mode_obj_props); }