[freeside-commits] branch FREESIDE_3_BRANCH updated. 00e73550bcfd02777e4413b19dfa3fb5cf509024

Ivan ivan at 420.am
Tue Sep 10 01:42:33 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  00e73550bcfd02777e4413b19dfa3fb5cf509024 (commit)
      from  a84a736a10a9c7a9eface1e666558d173dd4355a (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 00e73550bcfd02777e4413b19dfa3fb5cf509024
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Sep 10 01:42:32 2013 -0700

    svc_cable service have a single serial / MAC / model, not one-to-many devices like svc_phone and svc_dsl, RT#22009

diff --git a/httemplate/view/svc_Common.html b/httemplate/view/svc_Common.html
index 7e300b0..9c4d71e 100644
--- a/httemplate/view/svc_Common.html
+++ b/httemplate/view/svc_Common.html
@@ -25,6 +25,17 @@ if ( UNIVERSAL::can("FS::$table", 'table_info') ) {
                    }
                keys %$fields;
   $opt{'labels'} = \%labels;
+
+  #transform FS::svc_* table_info's structure into one svc_Common.html likes
+  delete $fields->{svcnum};
+  $opt{'fields'} = [ map { ref $fields->{$_}
+                             ? { field => $_,
+                                 %{ $fields->{$_} }
+                               }
+                             : $_
+                          } keys %$fields
+                   ];
+
 }
 
 </%init>

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

Summary of changes:
 httemplate/view/svc_Common.html |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list