Commit 3eb5fc0684b54c163f35973c9c86ef6133cc8625
1 parent
e1ba2733
KTS-1741
"PDFPlugin sometimes generates incorrect html for plugin page" Fixed. Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6328 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
plugins/ktstandard/PDFGeneratorAction.php
| @@ -191,8 +191,8 @@ class PDFGeneratorAction extends KTDocumentAction { | @@ -191,8 +191,8 @@ class PDFGeneratorAction extends KTDocumentAction { | ||
| 191 | # Create the document transaction | 191 | # Create the document transaction |
| 192 | $oDocumentTransaction = & new DocumentTransaction($oDocument, 'Document downloaded as PDF', 'ktcore.transactions.download', $aOptions); | 192 | $oDocumentTransaction = & new DocumentTransaction($oDocument, 'Document downloaded as PDF', 'ktcore.transactions.download', $aOptions); |
| 193 | $oDocumentTransaction->create(); | 193 | $oDocumentTransaction->create(); |
| 194 | - | ||
| 195 | - return true; | 194 | + # Just stop here - the content has already been sent. |
| 195 | + exit(0); | ||
| 196 | 196 | ||
| 197 | } else { | 197 | } else { |
| 198 | # Set the error messsage and redirect to view document | 198 | # Set the error messsage and redirect to view document |