Commit c5d0d65e06ff7e0fcbed07947e6431d77de8d281
1 parent
5a66cf65
KTS-2261
"When copying a document, the trigger is not passed the correct reference" Fixed. The reference to the new document was $oNewDocument, but should have been $oNewDoc. Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7065 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
plugins/ktcore/KTDocumentActions.php
| @@ -1191,7 +1191,7 @@ class KTDocumentCopyAction extends KTDocumentAction { | @@ -1191,7 +1191,7 @@ class KTDocumentCopyAction extends KTDocumentAction { | ||
| 1191 | $sTrigger = $aTrigger[0]; | 1191 | $sTrigger = $aTrigger[0]; |
| 1192 | $oTrigger = new $sTrigger; | 1192 | $oTrigger = new $sTrigger; |
| 1193 | $aInfo = array( | 1193 | $aInfo = array( |
| 1194 | - 'document' => $oNewDocument, | 1194 | + 'document' => $oNewDoc, |
| 1195 | 'old_folder' => $this->oDocumentFolder, | 1195 | 'old_folder' => $this->oDocumentFolder, |
| 1196 | 'new_folder' => $data['browse'], | 1196 | 'new_folder' => $data['browse'], |
| 1197 | ); | 1197 | ); |