[freeside-commits] freeside/httemplate/edit cust_main_note.cgi, 1.4.4.2, 1.4.4.3

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


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

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/cust_main_note.cgi,v
retrieving revision 1.4.4.2
retrieving revision 1.4.4.3
diff -u -w -d -r1.4.4.2 -r1.4.4.3
--- cust_main_note.cgi	27 Mar 2010 06:11:32 -0000	1.4.4.2
+++ cust_main_note.cgi	24 May 2010 23:55:14 -0000	1.4.4.3
@@ -6,11 +6,15 @@
 <INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
 <INPUT TYPE="hidden" NAME="notenum" VALUE="<% $notenum %>">
 
-<% include('/elements/htmlarea.html', 'field' => 'comment',
+% if( $FS::CurrentUser::CurrentUser->option('disable_html_editor') ) {
+  <TEXTAREA NAME="comment_plain" ROWS="12" COLS="60"><% 
+  join '', split /<br \/>|&nbsp;/, $comment 
+  %></TEXTAREA>
+% }
+% else {
+<% include('/elements/htmlarea.html', 'field' => 'comment_html',
                                       'curr_value' => $comment) %>
-% #<TEXTAREA NAME="comment" ROWS="12" COLS="60">
-% # <% $comment %>
-% #</TEXTAREA>
+% }
 
 <BR><BR>
 <INPUT TYPE="submit" VALUE="<% $notenum ? "Apply Changes" : "Add Note" %>">



More information about the freeside-commits mailing list