Squelch useless warning that winds up in open-ils.storage_stderr.log ... user/senator/squelch-action.pm-noise
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 5 Jul 2012 14:00:21 +0000 (10:00 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 5 Jul 2012 14:00:21 +0000 (10:00 -0400)
... consuming disk space endlessly.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm

index 7c07e6f..5ca4a65 100644 (file)
@@ -1285,7 +1285,7 @@ sub new_hold_copy_targeter {
                        my @good_copies;
                        for my $c (@$all_copies) {
                                # current target
-                               next if ($c->id eq $hold->current_copy);
+                               next if ($c->id eq ''.$hold->current_copy);
 
                                # skip on circ lib is closed IFF we care
                                my $ignore_closing;