[freeside-commits] branch FREESIDE_4_BRANCH updated. 2faea9544ed6b2872ad458319ee35245e81e946a

Jonathan Prykop jonathan at 420.am
Mon Nov 9 17:00:02 PST 2015


The branch, FREESIDE_4_BRANCH has been updated
       via  2faea9544ed6b2872ad458319ee35245e81e946a (commit)
      from  dc9b5a11c48ebdbcf907b6c009fb3f2a36847b05 (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 2faea9544ed6b2872ad458319ee35245e81e946a
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