summaryrefslogtreecommitdiff
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:56:16 -0600
commit2faea9544ed6b2872ad458319ee35245e81e946a (patch)
tree4c1689ad17f59a8a56609fd498f9997e01767f8a
parentdc9b5a11c48ebdbcf907b6c009fb3f2a36847b05 (diff)
RT#18439: Sorting routers alphabetically, routers disappear
-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' ).