[freeside-commits] freeside/httemplate/edit/process cust_main_note.cgi, 1.6, 1.6.4.1
Mark Wells
mark at wavetail.420.am
Mon May 24 16:55:17 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv28131/edit/process
Modified Files:
Tag: FREESIDE_1_9_BRANCH
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.6
retrieving revision 1.6.4.1
diff -u -w -d -r1.6 -r1.6.4.1
--- cust_main_note.cgi 14 Jul 2008 23:08:36 -0000 1.6
+++ cust_main_note.cgi 24 May 2010 23:55:14 -0000 1.6.4.1
@@ -18,6 +18,11 @@
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 $otaker = $FS::CurrentUser::CurrentUser->name;
$otaker = $FS::CurrentUser::CurrentUser->username
if ($otaker eq "User, Legacy");
@@ -27,7 +32,7 @@
custnum => $custnum,
_date => time,
otaker => $otaker,
- comments => $cgi->param('comment'),
+ comments => $comment,
} );
my $error;
More information about the freeside-commits
mailing list