[freeside-commits] branch master updated. a5b36e06b03a4d98758c3af16bb230667119a48a

Ivan ivan at 420.am
Thu Feb 7 23:11:26 PST 2013


The branch, master has been updated
       via  a5b36e06b03a4d98758c3af16bb230667119a48a (commit)
      from  1b523e698fce6720d6b9389ef636e7fe9e8b9f98 (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 a5b36e06b03a4d98758c3af16bb230667119a48a
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Feb 7 23:11:25 2013 -0800

    add MAC address and description to svc_broadband label, RT#19115

diff --git a/FS/FS/svc_broadband.pm b/FS/FS/svc_broadband.pm
index 1a3adf4..3b0b015 100755
--- a/FS/FS/svc_broadband.pm
+++ b/FS/FS/svc_broadband.pm
@@ -313,7 +313,12 @@ Returns the IP address.
 
 sub label {
   my $self = shift;
-  $self->ip_addr;
+  my $label = 'IP:'. ($self->ip_addr || 'Unknown');
+  $label .= '", MAC:'. $self->mac_addr
+    if $self->mac_addr;
+  $label .= ' ('. $self->description. ')'
+    if $self->description;
+  return $label;
 }
 
 =item insert [ , OPTION => VALUE ... ]

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

Summary of changes:
 FS/FS/svc_broadband.pm |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list