[freeside-commits] freeside/httemplate/edit/process cust_main_note.cgi, 1.8, 1.8.4.1 cust_note_class.html, NONE, 1.1.2.2

Erik Levinson levinse at wavetail.420.am
Wed Jan 26 21:10:12 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv22046/httemplate/edit/process

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	cust_main_note.cgi 
Added Files:
      Tag: FREESIDE_2_1_BRANCH
	cust_note_class.html 
Log Message:
note classes backport to 2.1 branch, RT9995

Index: cust_main_note.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_main_note.cgi,v
retrieving revision 1.8
retrieving revision 1.8.4.1
diff -u -w -d -r1.8 -r1.8.4.1
--- cust_main_note.cgi	24 May 2010 23:54:57 -0000	1.8
+++ cust_main_note.cgi	27 Jan 2011 05:10:10 -0000	1.8.4.1
@@ -18,6 +18,9 @@
   or die "Illegal notenum: ". $cgi->param('notenum');
 my $notenum = $1;
 
+$cgi->param('classnum') =~ /^(\d*)$/;
+my $classnum = $1;
+
 my $comment = $cgi->param('comment_html') || 
               join("<br />\n", 
                 split "(?:\r|\n)+", $cgi->param('comment_plain')
@@ -26,6 +29,7 @@
 my $new = new FS::cust_main_note ( {
   notenum  => $notenum,
   custnum  => $custnum,
+  classnum => $classnum ? $classnum : undef,
   _date    => time,
   usernum  => $FS::CurrentUser::CurrentUser->usernum,
   comments => $comment,

--- NEW FILE: cust_note_class.html ---
<% include( 'elements/process.html',
               'table'       => 'cust_note_class',
               'viewall_dir' => 'browse',
           )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

</%init>




More information about the freeside-commits mailing list