From b34da1425917f8d63cc76c319833f89816a63e3b Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 15 Apr 2011 13:51:49 +0200 Subject: [PATCH] bweb: Fix recyclepool problem reported by Magnus Kulk --- gui/bweb/lib/Bweb.pm | 8 +++++--- gui/bweb/tpl/update_media.tpl | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 174d3e434b..b938c19fc7 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -1863,6 +1863,8 @@ sub get_form new_dir => 1, job => 1, storage => 1, + pool => 1, + poolrecycle => 1, ); my %opt_s = ( # default to '' ach => 1, @@ -1871,14 +1873,12 @@ sub get_form inchanger => 1, client => 1, level => 1, - pool => 1, media => 1, ach => 1, jobtype=> 1, graph => 1, gtype => 1, type => 1, - poolrecycle => 1, replace => 1, expired => 1, enabled => 1, @@ -4569,7 +4569,9 @@ sub do_update_media if (defined $arg->{poolrecycle}) { $update .= " recyclepool=\"$arg->{poolrecycle}\" " ; - } + } else { + $update .= " recyclepool= " ; + } my $b = $self->get_bconsole(); diff --git a/gui/bweb/tpl/update_media.tpl b/gui/bweb/tpl/update_media.tpl index d2706673ad..63ad4356ff 100644 --- a/gui/bweb/tpl/update_media.tpl +++ b/gui/bweb/tpl/update_media.tpl @@ -97,6 +97,7 @@ __Recycle Pool:__