[freeside-commits] freeside/httemplate/edit/process cust_main_note.cgi, 1.7, 1.8

Mark Wells mark at wavetail.420.am
Mon May 24 16:55:00 PDT 2010


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

Modified Files:
	cust_main_note.cgi 
Log Message:
RT#8224: allow user to disable HTML editor

Index: cust_main_note.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_main_note.cgi,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- cust_main_note.cgi	31 Mar 2010 07:35:46 -0000	1.7
+++ cust_main_note.cgi	24 May 2010 23:54:57 -0000	1.8
@@ -18,12 +18,17 @@
   or die "Illegal notenum: ". $cgi->param('notenum');
 my $notenum = $1;
 
+my $comment = $cgi->param('comment_html') || 
+              join("<br />\n", 
+                split "(?:\r|\n)+", $cgi->param('comment_plain')
+              );
+
 my $new = new FS::cust_main_note ( {
   notenum  => $notenum,
   custnum  => $custnum,
   _date    => time,
   usernum  => $FS::CurrentUser::CurrentUser->usernum,
-  comments => scalar($cgi->param('comment')),
+  comments => $comment,
 } );
 
 my $error;



More information about the freeside-commits mailing list