From: Marcin Haba Date: Wed, 5 Apr 2023 13:58:31 +0000 (+0200) Subject: baculum: Add job type to sources endpoint X-Git-Tag: Release-13.0.3~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9600648eb0071f6d8e4486c06dc1f4afcb4a90ff;p=thirdparty%2Fbacula.git baculum: Add job type to sources endpoint --- diff --git a/gui/baculum/protected/API/Modules/SourceManager.php b/gui/baculum/protected/API/Modules/SourceManager.php index 312eaa7b7..052e4dea1 100644 --- a/gui/baculum/protected/API/Modules/SourceManager.php +++ b/gui/baculum/protected/API/Modules/SourceManager.php @@ -42,7 +42,16 @@ class SourceManager extends APIModule { } $where = Database::getWhere($criteria, true); $sql = 'SELECT DISTINCT - sres.fileset, sres.client, sres.job, jres.StartTime, jres.EndTime, ores.jobid, fres.Content, jres.JobStatus, jres.JobErrors + sres.fileset AS fileset, + sres.client AS client, + sres.job AS job, + jres.StartTime AS starttime, + jres.EndTime AS endtime, + ores.jobid AS jobid, + fres.Content AS content, + jres.Type AS type, + jres.JobStatus AS jobstatus, + jres.JobErrors AS joberrors FROM Job AS jres, FileSet AS fres, (