summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-08-12 13:46:22 -0700
committerMark Wells <mark@freeside.biz>2014-08-12 13:46:22 -0700
commitbd876bcd42a0ce8d1e44d87ba6c517cf6106ca37 (patch)
tree32a7392222c4fbd927c65692b89d2320435f5c22 /httemplate
parentc82ae54183494e5f26c72ad2f068782fd1bb91e7 (diff)
fix router/block unlinking, #29829, from #20742
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/process/svc_acct.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi
index ca614cbd8..9cac2c568 100755
--- a/httemplate/edit/process/svc_acct.cgi
+++ b/httemplate/edit/process/svc_acct.cgi
@@ -102,10 +102,14 @@ if ( ! $error ) {
map { $_ => $cgi->param("router_$_") }
qw( routernum routername blocknum )
});
- if (length($router->routername == 0)) {
+ if (length($router->routername) == 0) {
#sensible default
$router->set('routername', $new->label);
}
+ if (length($router->blocknum) == 0) {
+ #unset it
+ $router->set('blocknum', 0);
+ }
push @child_objects, $router;
}