From: Marcin Haba Date: Tue, 15 May 2018 19:34:23 +0000 (+0200) Subject: baculum: Fix SQL grouping error in restore wizard reported by Rasmus Linden X-Git-Tag: Release-9.2.0~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4f0b82e3a81703e9f883cbdd7eb013a08ee4060;p=thirdparty%2Fbacula.git baculum: Fix SQL grouping error in restore wizard reported by Rasmus Linden --- diff --git a/gui/baculum/protected/API/Class/VolumeManager.php b/gui/baculum/protected/API/Class/VolumeManager.php index cb0bf3a2bf..d1ad6e3a25 100644 --- a/gui/baculum/protected/API/Class/VolumeManager.php +++ b/gui/baculum/protected/API/Class/VolumeManager.php @@ -103,7 +103,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