[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 47f7a3e61064184284833ba0e9c59e34e16d1678
Ivan
ivan at 420.am
Thu Feb 7 23:11:28 PST 2013
The branch, FREESIDE_2_3_BRANCH has been updated
via 47f7a3e61064184284833ba0e9c59e34e16d1678 (commit)
from 56138a845f0928d8c189ef962b430b3466bd3fc2 (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 47f7a3e61064184284833ba0e9c59e34e16d1678
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Feb 7 23:11:26 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 c791dc4..46d046c 100755
--- a/FS/FS/svc_broadband.pm
+++ b/FS/FS/svc_broadband.pm
@@ -309,7 +309,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