From 33313a7342b2933ee72834565ffee388c4631318 Mon Sep 17 00:00:00 2001 From: pratikshad Date: Tue, 9 Jun 2015 13:04:05 +0530 Subject: [PATCH] CRM-16614 Fix-Email Invoice: 500 Error in AJAX response ---------------------------------------- * CRM-16614: Email Invoice: 500 Error in AJAX response https://issues.civicrm.org/jira/browse/CRM-16614 --- CRM/Contribute/Form/Task/Invoice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Task/Invoice.php b/CRM/Contribute/Form/Task/Invoice.php index 6b004586ee..9c35bd71b6 100644 --- a/CRM/Contribute/Form/Task/Invoice.php +++ b/CRM/Contribute/Form/Task/Invoice.php @@ -145,6 +145,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task { */ public function buildQuickForm() { $session = CRM_Core_Session::singleton(); + $this->preventAjaxSubmit(); if (CRM_Core_Permission::check('administer CiviCRM')) { $this->assign('isAdmin', 1); } @@ -634,8 +635,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task { * Name of file which is in pdf format */ static public function putFile($html) { - require_once "packages/dompdf/dompdf_config.inc.php"; - spl_autoload_register('DOMPDF_autoload'); + require_once "vendor/dompdf/dompdf/dompdf_config.inc.php"; $doc = new DOMPDF(); $doc->load_html($html); $doc->render(); -- 2.25.1