diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-11-09 18:53:42 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-11-09 19:03:21 -0600 |
commit | 09bdc89b2cf12d7b4f4dd1376975b4c9164b4249 (patch) | |
tree | a4c45dfa737319921c842316f8a5ffee2f88ee0f | |
parent | a7cdcc2e497eb862d36becb93a14fb32037260be (diff) |
RT#18439: Sorting routers alphabetically, routers disappear
-rw-r--r-- | httemplate/browse/router.cgi | 4 |
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' ). |