From c5c665b2027869563e9b4775cd9dd4e5946eff9c Mon Sep 17 00:00:00 2001 From: bshuttle Date: Mon, 31 Jul 2006 10:21:09 +0000 Subject: [PATCH] fix for KTS-1225: failure when changing doctype for type plugin. --- plugins/ktstandard/workflow/TypeAssociator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ktstandard/workflow/TypeAssociator.php b/plugins/ktstandard/workflow/TypeAssociator.php index d4d54a6..2f29d9f 100644 --- a/plugins/ktstandard/workflow/TypeAssociator.php +++ b/plugins/ktstandard/workflow/TypeAssociator.php @@ -57,14 +57,14 @@ class KTDocTypeWorkflowAssociationPlugin extends KTPlugin { class DocumentTypeWorkflowAssociator extends KTWorkflowAssociationHandler { function addTrigger($oDocument) { - return $oW = $this->getWorkflowForType($oDocument->getDocumentTypeID()); + return $oW = $this->getWorkflowForType($oDocument->getDocumentTypeID(), $oDocument); } function editTrigger($oDocument) { - return $oW = $this->getWorkflowForType($oDocument->getDocumentTypeID()); + return $oW = $this->getWorkflowForType($oDocument->getDocumentTypeID(), $oDocument); } - function getWorkflowForType($iDocTypeId) { + function getWorkflowForType($iDocTypeId, $oDocument) { if (is_null($iDocTypeId)) { return null; } $sQuery = 'SELECT `workflow_id` FROM ' . KTUtil::getTableName('type_workflow_map'); -- libgit2 0.21.4