[freeside-commits] freeside/httemplate/view svc_dish.cgi, 1.2, 1.2.2.1 svc_hardware.cgi, 1.2, 1.2.2.1

Mark Wells mark at wavetail.420.am
Sat Jul 30 18:01:07 PDT 2011


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

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	svc_dish.cgi svc_hardware.cgi 
Log Message:
more tolerant installation note fields, #13827

Index: svc_dish.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_dish.cgi,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -w -d -r1.2 -r1.2.2.1
--- svc_dish.cgi	29 Apr 2011 08:58:19 -0000	1.2
+++ svc_dish.cgi	31 Jul 2011 01:01:04 -0000	1.2.2.1
@@ -14,6 +14,8 @@
                  } keys %$fields;
 my @fields = ('acctnum',
               { field => 'installdate', type => 'date' },
-              'note'
+              { field => 'note', 
+                value => sub { encode_entities($_[0]->note) } 
+              },
               );
 </%init>

Index: svc_hardware.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_hardware.cgi,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -w -d -r1.2 -r1.2.2.1
--- svc_hardware.cgi	29 Apr 2011 08:58:19 -0000	1.2
+++ svc_hardware.cgi	31 Jul 2011 01:01:04 -0000	1.2.2.1
@@ -20,5 +20,9 @@
                type  => 'text',
                value => sub { $_[0]->status_label }
             };
-my @fields = ($model, qw( serial hw_addr ip_addr smartcard ), $status, 'note' );
+my $note =   { field => 'note',
+               type  => 'text',
+               value => sub { encode_entities($_[0]->note) }
+             };
+my @fields = ($model, qw( serial hw_addr ip_addr smartcard ), $status, $note );
 </%init>



More information about the freeside-commits mailing list