From: Eric Bollengier Date: Sat, 25 Sep 2010 22:02:42 +0000 (+0200) Subject: bweb: fix expired button in media view X-Git-Tag: Release-5.2.1~1078 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=217da652c331f5b29534710eb96da30837588840;p=bacula%2Fbacula bweb: fix expired button in media view --- diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 62aa771550..97a29f2da3 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -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 ;