[Vtigercrm-commits] [vtiger development] #7502: Special characters in PDF Invoices [SOLUTION]

vtiger development vtiger-tickets at trac.vtiger.com
Wed Aug 29 06:13:25 PDT 2012


#7502: Special characters in PDF Invoices [SOLUTION]
-----------------------+----------------------------------------------------
 Reporter:  adrian     |       Owner:  developer 
     Type:  defect     |      Status:  new       
 Priority:  minor      |   Milestone:  Unassigned
Component:  vtigercrm  |     Version:  5.4.0     
 Severity:  Medium     |    Keywords:            
-----------------------+----------------------------------------------------
 I just found a bug with PDF Invoice.

 If you put special characters in product Name, this happens:
 http://i.imgur.com/pBDFL.png

 You need to modify this lines:
 In \include\InventoryPDFController.php - line 132

 $productName = $productLineItem["productName{$productLineItemIndex}"];

 to

 $productName =
 html_entity_decode($productLineItem["productName{$productLineItemIndex}"],ENT_QUOTES,$default_charset);

 And in line 93 add this: global $default_charset;

 You can see the modify here: http://i.imgur.com/hm8gM.png

 Cheers

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



More information about the vtigercrm-commits mailing list