[freeside-commits] branch FREESIDE_3_BRANCH updated. 09bdc89b2cf12d7b4f4dd1376975b4c9164b4249

Jonathan Prykop jonathan at 420.am
Mon Nov 9 17:05:19 PST 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  09bdc89b2cf12d7b4f4dd1376975b4c9164b4249 (commit)
      from  a7cdcc2e497eb862d36becb93a14fb32037260be (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 09bdc89b2cf12d7b4f4dd1376975b4c9164b4249
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Mon Nov 9 18:53:42 2015 -0600

    RT#18439: Sorting routers alphabetically, routers disappear

diff --git a/httemplate/browse/router.cgi b/httemplate/browse/router.cgi
index ef8ad31..85512f8 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' ).

-----------------------------------------------------------------------

Summary of changes:
 httemplate/browse/router.cgi |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list