[freeside-commits] freeside/httemplate/view svc_phone.cgi, 1.12.2.3, 1.12.2.4

Ivan,,, ivan at wavetail.420.am
Sun Mar 7 23:03:01 PST 2010


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv12482/httemplate/view

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	svc_phone.cgi 
Log Message:
domain names in netsapiens export (domain name association w/svc_phone), RT#5864

Index: svc_phone.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_phone.cgi,v
retrieving revision 1.12.2.3
retrieving revision 1.12.2.4
diff -u -w -d -r1.12.2.3 -r1.12.2.4
--- svc_phone.cgi	8 Feb 2010 15:32:38 -0000	1.12.2.3
+++ svc_phone.cgi	8 Mar 2010 07:02:59 -0000	1.12.2.4
@@ -1,16 +1,10 @@
 <% include('elements/svc_Common.html',
               'table'     => 'svc_phone',
-              'fields'    => [qw(
-                                  countrycode
-                                  phonenum
-                                  pbx_title
-                                  sip_password
-                                  pin
-                                  phone_name
-                             )],
+              'fields'    => \@fields,
               'labels'    => {
                                'countrycode'  => 'Country code',
                                'phonenum'     => 'Phone number',
+                               'domain'       => 'Domain',
                                'pbx_title'    => 'PBX',
                                'sip_password' => 'SIP password',
                                'pin'          => 'PIN',
@@ -21,6 +15,12 @@
 %>
 <%init>
 
+my $conf = new FS::Conf;
+
+my @fields = qw( countrycode phonenum );
+push @fields, 'domain' if $conf->exists('svc_phone-domain');
+push @fields, qw( pbx_title sip_password pin phone_name );
+
 my $html_foot = sub {
   my $svc_phone = shift;
 



More information about the freeside-commits mailing list