[Vtigercrm-commits] [vtiger development] #7243: hardcoded string in PDF Invoice filename

vtiger development vtiger-tickets at trac.vtiger.com
Tue Nov 29 04:29:23 PST 2011


#7243: hardcoded string in PDF Invoice filename
------------------------+---------------------------------------------------
 Reporter:  srihari     |       Owner:  developer 
     Type:  defect      |      Status:  new       
 Priority:  unassigned  |   Milestone:  Unassigned
Component:  vtigercrm   |     Version:  5.3.0     
 Severity:  Medium      |    Keywords:            
------------------------+---------------------------------------------------
 {{{
 if(isset($_REQUEST['savemode']) && $_REQUEST['savemode'] == 'file') {
     $id = vtlib_purify($_REQUEST['record']);
     $filepath='test/product/'.$id.'_Invoice_'.$invoice_no.'.pdf';
     $controller->Output($filepath,'F'); //added file name to make it work
 in IE, also forces the download giving the user the option to save
 } else {
     $controller->Output('Invoice_'.$invoice_no.'.pdf', 'D')
 }}}

 we have hardcoded module name 'Invoice' in the file generation.

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



More information about the vtigercrm-commits mailing list