[Vtigercrm-commits] [vtiger development] #4617: Invalid alert message in Notes CreateView page

vtiger development vtiger-tickets at trac.vtiger.com
Mon Dec 3 04:59:39 EST 2007


#4617: Invalid alert message in Notes CreateView page
------------------------+---------------------------------------------------
  Reporter:  mangai     |       Owner:  allen
      Type:  defect     |      Status:  new  
  Priority:  major      |   Milestone:  5.0.4
 Component:  vtigercrm  |     Version:  5.0.4
Resolution:             |    Keywords:       
------------------------+---------------------------------------------------
Comment (by prasad):

 Attempt is made to replace textarea with RTE, because of field access
 restriction the field is not created. So RTE creation is failing.

 The following fix needs to be added in
 (Smarty/templates/salesEditView.tpl) and (Smarty/templates/CreateView.tpl)

 {{{
 ...
 <script type="text/javascript"
 src="include/fckeditor/fckeditor.js"></script>
 <script type="text/javascript" defer="1">

 var oFCKeditor = null;
 {if $MODULE eq 'Notes'}
 {literal}
     if($("notecontent")) {
         oFCKeditor = new FCKeditor( "notecontent" ) ;
     }
 {/literal}
 {/if}
 {literal}
 if(oFCKeditor != null) {
     oFCKeditor.BasePath   = "include/fckeditor/" ;
     oFCKeditor.ReplaceTextarea() ;
 }
 {/literal}
 </script>
 ...
 }}}

 Regards,
 Prasad

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4617#comment:2>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list