From: Eric Bollengier Date: Mon, 22 Jan 2007 09:48:24 +0000 (+0000) Subject: ebl update RecyclePoolId to Scratch when label_barcodes X-Git-Tag: Release-2.0.2~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e4f725e01499f17b451ae29b4f1578909568c51;p=bacula%2Fbacula ebl update RecyclePoolId to Scratch when label_barcodes git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4030 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 26716e26a1..d04a8b9e23 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -3035,12 +3035,14 @@ sub label_barcodes UPDATE Media SET LocationId = (SELECT LocationId FROM Location - WHERE Location = '$arg->{ach}') + WHERE Location = '$arg->{ach}'), + + RecyclePoolId = PoolId WHERE Media.PoolId = (SELECT PoolId FROM Pool WHERE Name = 'Scratch') - AND LocationId = 0 + AND (LocationId = 0 OR LocationId IS NULL) "); }