summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-11-09 18:53:42 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-11-09 18:53:42 -0600
commitadde23e02a271005a708519efd82c43f388cfdee (patch)
tree1f4a4bc57edee53f782ecb55cd342c6be4bbeb2c /httemplate
parent96b69dd1aa5c8045b5a4297ecea510d60f575251 (diff)
RT#18439: Sorting routers alphabetically, routers disappear
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/browse/router.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/browse/router.cgi b/httemplate/browse/router.cgi
index ef8ad3160..85512f8df 100644
--- a/httemplate/browse/router.cgi
+++ b/httemplate/browse/router.cgi
@@ -43,11 +43,13 @@ my @menubar = ( 'Add a new router', "${p2}edit/router.cgi" );
if ($cgi->param('hidecustomerrouters') eq '1') {
$extra_sql = 'WHERE svcnum > 0';
- $cgi->param('hidecustomerrouters', 0);
+ $cgi->delete('hidecustomerrouters');
push @menubar, 'Show customer routers', $cgi->self_url();
+ $cgi->param('hidecustomerrouters', 1);
} else {
$cgi->param('hidecustomerrouters', 1);
push @menubar, 'Hide customer routers', $cgi->self_url();
+ $cgi->delete('hidecustomerrouters');
}
my $count_sql = $extra_sql. ( $extra_sql =~ /WHERE/ ? ' AND' : 'WHERE' ).