[freeside-commits] branch master updated. 4d75191d9cc9ef91b82cd6ff4be96cdc8f82e480

Ivan ivan at 420.am
Sun Jan 5 00:30:46 PST 2014


The branch, master has been updated
       via  4d75191d9cc9ef91b82cd6ff4be96cdc8f82e480 (commit)
      from  013646e6629fc94b4cda03c495aa56677f2de381 (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 4d75191d9cc9ef91b82cd6ff4be96cdc8f82e480
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Jan 5 00:30:44 2014 -0800

    add devicename to phone_shellcommands device insert and delete, RT#25705

diff --git a/FS/FS/part_export/phone_shellcommands.pm b/FS/FS/part_export/phone_shellcommands.pm
index 411c263..593b14e 100644
--- a/FS/FS/part_export/phone_shellcommands.pm
+++ b/FS/FS/part_export/phone_shellcommands.pm
@@ -54,6 +54,7 @@ old_ for replace operations):
   <LI><code>$pkgnum</code> - Internal package number
   <LI><code>$custnum</code> - Internal customer number
   <LI><code>$mac_addr</code> - MAC address (Device MAC address insert and delete commands only)
+  <LI><code>$devicename</code> - Device type (Device type insert and delete commands only)
 </UL>
 END
 );
@@ -83,14 +84,16 @@ sub _export_unsuspend {
 sub export_device_insert {
   my( $self, $svc_phone, $phone_device ) = @_;
   $self->_export_command('mac_insert', $svc_phone,
-                           'mac_addr'=>$phone_device->mac_addr
+                           mac_addr   => $phone_device->mac_addr,
+                           devicename => $phone_device->part_device->devicename,
                         );
 }
 
 sub export_device_delete {
   my( $self, $svc_phone, $phone_device ) = @_;
   $self->_export_command('mac_delete', $svc_phone,
-                           'mac_addr'=>$phone_device->mac_addr
+                           mac_addr   => $phone_device->mac_addr,
+                           devicename => $phone_device->part_device->devicename,
                         );
 }
 

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

Summary of changes:
 FS/FS/part_export/phone_shellcommands.pm |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list