diff options
author | Mark Wells <mark@freeside.biz> | 2014-08-12 13:46:44 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-08-12 13:46:44 -0700 |
commit | 7ff3a40dfb8e6d5cc15e87346f447b1d6806e39c (patch) | |
tree | fe5ce244d12596621c9f4cd910190419479e18b0 /httemplate/edit/process | |
parent | 898373c17b6489ab1971bccc692323aa52b8900e (diff) |
fix router/block unlinking, #29829, from #20742
Diffstat (limited to 'httemplate/edit/process')
-rwxr-xr-x | httemplate/edit/process/svc_acct.cgi | 6 |
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; } |