]> git.sur5r.net Git - bacula/bacula/commitdiff
bweb: add filter on fileindex to bfileview
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 14 Mar 2010 10:12:42 +0000 (11:12 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 15 Mar 2010 08:39:44 +0000 (09:39 +0100)
gui/bweb/cgi/bfileview.pl

index 8282f278caeb8eacbfd8ee5fa69119c94f17be05..08eec0b8464cb57f33db89c3d0f00deb2997a3ec 100755 (executable)
@@ -362,6 +362,7 @@ sub fv_get_files_size
    FROM File
   WHERE PathId  = $rep
     AND JobId = $jobid
+    AND FileIndex >= 0
 ");
 
     return $ret->{size};
@@ -379,6 +380,7 @@ sub fv_get_big_files
            FROM File
           WHERE PathId  = $rep
             AND JobId = $jobid
+            AND FileIndex >= 0
         ) AS S INNER JOIN Filename USING (FilenameId)
    WHERE S.size > $min
    ORDER BY S.size DESC