]> git.sur5r.net Git - bacula/bacula/commitdiff
bweb: fix expired button in media view
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 25 Sep 2010 22:02:42 +0000 (00:02 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 30 Sep 2010 12:35:23 +0000 (14:35 +0200)
gui/bweb/lib/Bweb.pm

index 62aa771550ed4f8d191fb1db15bcace9111ce5aa..97a29f2da3da8f5a9b6d7a459d414325577f86ed 100644 (file)
@@ -2606,7 +2606,7 @@ sub display_media
     }
     if ($arg->{expired}) {
         $where = " 
-        AND VolStatus = ('Full', 'Used')
+        AND VolStatus IN ('Full', 'Used')
         AND (    $self->{sql}->{UNIX_TIMESTAMP}(Media.LastWritten) 
                + $self->{sql}->{TO_SEC}(Media.VolRetention)
             ) < $self->{sql}->{NOW}  " . $where ;