[freeside-commits] branch master updated. 4d912748b3db3981fd03cdf74df7da696320f46d
Mark Wells
mark at 420.am
Tue Mar 20 11:33:58 PDT 2012
The branch, master has been updated
via 4d912748b3db3981fd03cdf74df7da696320f46d (commit)
from 821befdd93dff664debfdbeea7b25a724c91093c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4d912748b3db3981fd03cdf74df7da696320f46d
Author: Mark Wells <mark at freeside.biz>
Date: Tue Mar 20 11:33:50 2012 -0700
warn during upgrade if addr_block records are missing, #17040
diff --git a/FS/FS/svc_broadband.pm b/FS/FS/svc_broadband.pm
index e9917ff..06a3001 100755
--- a/FS/FS/svc_broadband.pm
+++ b/FS/FS/svc_broadband.pm
@@ -640,6 +640,11 @@ sub _upgrade_data {
routernum => ''
})) {
my $addr_block = $self->addr_block;
+ if ( !$addr_block ) {
+ # super paranoid mode
+ warn "WARNING: svcnum ".$self->svcnum." is assigned to addr_block ".$self->blocknum.", which does not exist; skipped.\n";
+ next;
+ }
my $ip_addr = $self->ip_addr;
my $routernum = $addr_block->routernum;
if ( $routernum ) {
-----------------------------------------------------------------------
Summary of changes:
FS/FS/svc_broadband.pm | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
More information about the freeside-commits
mailing list