From: Mark Wells Date: Wed, 19 Dec 2012 20:33:48 +0000 (-0800) Subject: fix in-use test for IP addresses in cases where blocknum is not set X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=f197bdbaa16df592a82971c63aa4321a4788d335;p=freeside.git fix in-use test for IP addresses in cases where blocknum is not set --- diff --git a/FS/FS/svc_IP_Mixin.pm b/FS/FS/svc_IP_Mixin.pm index 7026205a5..7eda7e02c 100644 --- a/FS/FS/svc_IP_Mixin.pm +++ b/FS/FS/svc_IP_Mixin.pm @@ -93,7 +93,7 @@ sub _used_addresses { # in use, yes? my %hash = ( $ip_field => { op => '!=', value => '' } ); - $hash{'blocknum'} = $block->blocknum if $block; + #$hash{'blocknum'} = $block->blocknum if $block; $hash{'svcnum'} = { op => '!=', value => $exclude->svcnum } if ref $exclude; map { $_->NetAddr->addr } qsearch($class->table, \%hash); }