[Vtigercrm-commits] [vtiger development] #5369: product description fix does not work in 5.1 eval

vtiger development vtiger-tickets at trac.vtiger.com
Thu Sep 25 10:23:18 EDT 2008


#5369: product description fix does not work in 5.1 eval
-----------------------+----------------------------------------------------
 Reporter:  frankpie   |       Owner:  developer
     Type:  defect     |      Status:  new      
 Priority:  critical   |   Milestone:  5.1.0    
Component:  vtigercrm  |     Version:  5.0.4    
 Keywords:             |  
-----------------------+----------------------------------------------------
 I checked the code of the (not released) v.5.1 there with the SVN revision
 12112 the issue intends to be fixed that the product description was not
 taken if you replaced an existing product by the popup. There are 2 issues
 with the revision provided:

 1. There is an issue with LF and CR. If you product description contains
 line breaks, the producs.js will not accept it and fail to update the
 information. I am not sure what causes it but the following did the trick:

 $slashes_desc =  str_replace(chr(10), "", $slashes_desc);

 $slashes_desc =  str_replace(chr(13), "", $slashes_desc);


 2. it replaces the comment field and not, as necessary, the description
 field. Here is how to ix it:

 line 80: replace

 window.opener.document.EditView.elements["comment"+curr_row].value = desc;

 by

 window.opener.document.EditView.elements["productDescription"+curr_row].value
 = desc;

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5369>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list