X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fcust_main_note.cgi;h=f904c5968ddf08fdafe4692c3cfdfa26b311eb75;hb=b7c723f64f35ad8049fc6605437a17b262b0d17c;hp=f09189aa91af1097fd62caf42aa0d5c88066e272;hpb=5f71517b3de709a86c89dbacc6247cd6e52f4c42;p=freeside.git diff --git a/httemplate/edit/process/cust_main_note.cgi b/httemplate/edit/process/cust_main_note.cgi index f09189aa9..f904c5968 100755 --- a/httemplate/edit/process/cust_main_note.cgi +++ b/httemplate/edit/process/cust_main_note.cgi @@ -18,12 +18,17 @@ $cgi->param('notenum') =~ /^(\d*)$/ or die "Illegal notenum: ". $cgi->param('notenum'); my $notenum = $1; +my $comment = $cgi->param('comment_html') || + join("
\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;