[freeside-commits] branch FREESIDE_3_BRANCH updated. b85fa34c25e232ef469e80718d985cc04765332d

Ivan Kohler ivan at freeside.biz
Tue May 8 15:43:48 PDT 2018


The branch, FREESIDE_3_BRANCH has been updated
       via  b85fa34c25e232ef469e80718d985cc04765332d (commit)
      from  fad6e3456699062c05301bff45243a88df93e312 (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 b85fa34c25e232ef469e80718d985cc04765332d
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue May 8 15:43:47 2018 -0700

    show account services in address block list too, RT#79825

diff --git a/httemplate/browse/addr_block.cgi b/httemplate/browse/addr_block.cgi
index ba40bfd43..9e7ef2af2 100644
--- a/httemplate/browse/addr_block.cgi
+++ b/httemplate/browse/addr_block.cgi
@@ -17,12 +17,13 @@
                           '',
                         ],
      'fields'        => [ 'NetAddr',
-                          sub { my $block = shift;
-                                my $router = $block->router;
+                          sub { my $b = shift;
+                                my $router = $b->router;
                                 my $result = '';
                                 if ($router) {
-                                  $result .= $router->routername. ' (';
-                                  $result .= scalar($block->svc_broadband). ' services)';
+                                  $result .= $router->routername. ' ('.
+                                    scalar($b->svc_broadband). ' broadband, '.
+                                    scalar($b->svc_acct). ' account services)';
                                 }
                                 $result;
                               },

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

Summary of changes:
 httemplate/browse/addr_block.cgi | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list