Skip to content

Commit

Permalink
Added fetch_thirdparty (without the site crashes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Otte authored and eldy committed Jul 29, 2020
1 parent 391fcc7 commit 85c5f42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/comm/propal/card.php
Expand Up @@ -236,6 +236,7 @@
$outputlangs->setDefaultLang($newlang);
}
$ret = $object->fetch($id); // Reload to get new records
if ($ret > 0) $object->fetch_thirdparty();
$object->generateDocument($object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
}

Expand Down Expand Up @@ -803,6 +804,7 @@
$outputlangs->setDefaultLang($newlang);
}
$ret = $object->fetch($id); // Reload to get new records
if ($ret > 0) $object->fetch_thirdparty();
$object->generateDocument($object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
}
}
Expand Down Expand Up @@ -1284,6 +1286,7 @@
$outputlangs->setDefaultLang($newlang);
}
$ret = $object->fetch($id); // Reload to get new records
if ($ret > 0) $object->fetch_thirdparty();
$object->generateDocument($object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
}

Expand Down

0 comments on commit 85c5f42

Please sign in to comment.