Skip to content

Commit

Permalink
Quick hack to prevent export pdf crash in some billing calculator con…
Browse files Browse the repository at this point in the history
…figurations
  • Loading branch information
dleffler committed Feb 6, 2016
1 parent 4afd774 commit 988c7f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -445,7 +445,7 @@ function getPDF($orders = null) {
exit();
*/
/**
* to do this same thing as below using expHtmlToPDF/2/3
* to do this same thing as below using expHtmlToPDF
*/
$mypdf = new expHtmlToPDF('Letter','portrait',$invoice);
$mypdf->createpdf('D',$org_name . "_Invoice" . ".pdf");
Expand Down
4 changes: 3 additions & 1 deletion framework/modules/ecommerce/models/billing.php
Expand Up @@ -104,7 +104,9 @@ public function __construct($id=null) {

foreach($this->available_calculators as $key => $item) {
$calc = new $item($key);
$this->form[$key] = $calc->userForm();
if (!expJavascript::inAjaxAction()) { //fixme kludge for now to get order pdf's to print out
$this->form[$key] = $calc->userForm();
}
}

// eDebug($this->form, true);
Expand Down

0 comments on commit 988c7f2

Please sign in to comment.