X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main_note.cgi;h=439c84414c245ed19ce157d6677f304efc16e097;hb=d2aa9a479f8d45ef18ef9076e7e72865b8665491;hp=a633c9d12da069ac138f117336be916fb6b694e3;hpb=c86fe9ea75d23d3d0c3536b709ac1e086f15a5de;p=freeside.git
diff --git a/httemplate/edit/cust_main_note.cgi b/httemplate/edit/cust_main_note.cgi
index a633c9d12..439c84414 100755
--- a/httemplate/edit/cust_main_note.cgi
+++ b/httemplate/edit/cust_main_note.cgi
@@ -6,13 +6,15 @@
-
-
-<% include('/elements/htmlarea.html', 'field' => 'comment',
+% if( $FS::CurrentUser::CurrentUser->option('disable_html_editor') ) {
+
+% }
+% else {
+<% include('/elements/htmlarea.html', 'field' => 'comment_html',
'curr_value' => $comment) %>
-% #
+% }
">
@@ -35,6 +37,8 @@ if ( $cgi->param('error') ) {
$comment = $note->comments;
}
+$comment =~ s/\r//g; # remove weird line breaks to protect FCKeditor
+
$cgi->param('custnum') =~ /^(\d+)$/ or die "illeagl custnum";
my $custnum = $1;