]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix SQL grouping error in restore wizard reported by Rasmus Linden
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 15 May 2018 19:34:23 +0000 (21:34 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 15 May 2018 19:34:23 +0000 (21:34 +0200)
gui/baculum/protected/API/Class/VolumeManager.php

index 35265beb9776b83129d0634c10f67d75ef8d02d8..48b25d74d222d65a0008e439d8a0298af7b54498 100644 (file)
@@ -85,7 +85,7 @@ class VolumeManager extends APIModule {
                $sql = sprintf('SELECT first_index, last_index, VolumeName AS volname, InChanger AS inchanger FROM (
                 SELECT VolumeName, InChanger, MIN(FirstIndex) as first_index, MAX(LastIndex) as last_index
                 FROM JobMedia JOIN Media ON (JobMedia.MediaId = Media.MediaId)
-                WHERE JobId = %d GROUP BY (VolumeName, InChanger)
+                WHERE JobId = %d GROUP BY VolumeName, InChanger
                ) AS gv, File
                 WHERE FileIndex >= first_index
                 AND FileIndex <= last_index