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

vtiger development vtiger-tickets at trac.vtiger.com
Tue Nov 29 04:35:40 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      |   Resolution:            
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by srihari):

 {{{
 $moduleName=getTranslatedString('SINGLE_Invoice', $currentModule);
 if(isset($_REQUEST['savemode']) && $_REQUEST['savemode'] == 'file') {
     $id = vtlib_purify($_REQUEST['record']);
 $filepath='test/product/'.$id.'_'."$moduleName".'_'.$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("$moduleName".'_'.$invoice_no.'.pdf', 'D')
 }}}

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



More information about the vtigercrm-commits mailing list