[Vtigercrm-commits] [vtiger development] #5272: ajax popup listview second page single quote problem

vtiger development vtiger-tickets at trac.vtiger.com
Thu Apr 24 10:54:06 EDT 2008


#5272: ajax popup listview second page single quote problem
--------------------------+-------------------------------------------------
 Reporter:  carlo.beschi  |       Owner:  developer
     Type:  defect        |      Status:  new      
 Priority:  minor         |   Milestone:  5.1.0    
Component:  vtigercrm     |     Version:  5.0.4    
 Keywords:                |  
--------------------------+-------------------------------------------------
 when you edit an account associated to a contact via ajax popup (select
 contact, edit contact, edit associated account), if you need an account
 which is not on the first page of the listview inside the popup, the new
 account associated is not saved if it contains a quote sign (') in name or
 address field

 the issue has been addressed and fixed here:
 http://forums.vtiger.com/viewtopic.php?t=19167

 thx tonyhouse:
 in /include/utils/ListViewUtils.php  the function decode_html (line 3728)
 must be modified from

 function decode_html($str)
 {
    global $default_charset;
    if($_REQUEST['action'] == 'Popup')
       return html_entity_decode($str);
    else
       return html_entity_decode($str,ENT_QUOTES,$default_charset);
 }

 to

 function decode_html($str)
 {
    global $default_charset;
    if($_REQUEST['action'] == 'Popup' || $_REQUEST['file'] == 'Popup')
       return html_entity_decode($str);
    else
       return html_entity_decode($str,ENT_QUOTES,$default_charset);
 }

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




More information about the vtigercrm-commits mailing list