]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Fix sources endpoint double results
authorMarcin Haba <marcin.haba@bacula.pl>
Fri, 9 Dec 2022 09:21:31 +0000 (10:21 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Mon, 9 Jan 2023 12:34:42 +0000 (13:34 +0100)
gui/baculum/protected/API/Modules/SourceManager.php

index b1d0239413f6b3137966bd4567d3d9a8d770cfea..7cb0b20b49fe3d6f3cf3be4a68bb169148d558ae 100644 (file)
@@ -37,7 +37,7 @@ class SourceManager extends APIModule {
                        $limit = ' LIMIT ' . $limit_val;
                }
                $where = Database::getWhere($criteria, true);
-               $sql = 'SELECT
+               $sql = 'SELECT DISTINCT 
        sres.fileset, sres.client, sres.job, ores.starttime, ores.jobid, jres.jobstatus
        FROM Job AS jres,
        (