[freeside-commits] branch FREESIDE_2_3_BRANCH updated. a655e41afacdc0bbfbde4c8ee07e8656ed2b6b57
Mark Wells
mark at 420.am
Tue Mar 20 11:34:14 PDT 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via a655e41afacdc0bbfbde4c8ee07e8656ed2b6b57 (commit)
from e7d79a187ead74cb89c3b6203ffff735e1ee4df8 (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 a655e41afacdc0bbfbde4c8ee07e8656ed2b6b57
Author: Mark Wells <mark at freeside.biz>
Date: Tue Mar 20 11:32:58 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 668a3cf..3a936a9 100755
--- a/FS/FS/svc_broadband.pm
+++ b/FS/FS/svc_broadband.pm
@@ -639,6 +639,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