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

Erik Levinson levinse at wavetail.420.am
Thu Dec 9 22:02:54 PST 2010


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

Modified Files:
	cust_main_note.cgi 
Added Files:
	cust_note_class.html 
Log Message:
implement customer note classes, 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.9
diff -u -w -d -r1.8 -r1.9
--- cust_main_note.cgi	24 May 2010 23:54:57 -0000	1.8
+++ cust_main_note.cgi	10 Dec 2010 06:02:52 -0000	1.9
@@ -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