Commit c5c665b2027869563e9b4775cd9dd4e5946eff9c
1 parent
47d39145
fix for KTS-1225: failure when changing doctype for type plugin.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5775 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
3 deletions
plugins/ktstandard/workflow/TypeAssociator.php
| ... | ... | @@ -57,14 +57,14 @@ class KTDocTypeWorkflowAssociationPlugin extends KTPlugin { |
| 57 | 57 | |
| 58 | 58 | class DocumentTypeWorkflowAssociator extends KTWorkflowAssociationHandler { |
| 59 | 59 | function addTrigger($oDocument) { |
| 60 | - return $oW = $this->getWorkflowForType($oDocument->getDocumentTypeID()); | |
| 60 | + return $oW = $this->getWorkflowForType($oDocument->getDocumentTypeID(), $oDocument); | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | function editTrigger($oDocument) { |
| 64 | - return $oW = $this->getWorkflowForType($oDocument->getDocumentTypeID()); | |
| 64 | + return $oW = $this->getWorkflowForType($oDocument->getDocumentTypeID(), $oDocument); | |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - function getWorkflowForType($iDocTypeId) { | |
| 67 | + function getWorkflowForType($iDocTypeId, $oDocument) { | |
| 68 | 68 | if (is_null($iDocTypeId)) { return null; } |
| 69 | 69 | |
| 70 | 70 | $sQuery = 'SELECT `workflow_id` FROM ' . KTUtil::getTableName('type_workflow_map'); | ... | ... |