Commit 9e07de343952a5d0f7b399ae6d859dd9f8ae79f1
1 parent
465c7064
Merged in from STABLE trunk ...
KTS-3657 "The automatic workflow by document type doesn?\195?\130?\194?\180t work" Fixed. The sql was incorrect. Committed by: Megan Watson Reviewed by: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.3a-Release-Branch@9241 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
plugins/ktstandard/workflow/TypeAssociator.php
| @@ -98,7 +98,7 @@ class DocumentTypeWorkflowAssociator extends KTWorkflowAssociationHandler { | @@ -98,7 +98,7 @@ class DocumentTypeWorkflowAssociator extends KTWorkflowAssociationHandler { | ||
| 98 | if (is_null($iDocTypeId)) { return null; } | 98 | if (is_null($iDocTypeId)) { return null; } |
| 99 | 99 | ||
| 100 | // Link to the workflows table to ensure disabled workflows aren't associated | 100 | // Link to the workflows table to ensure disabled workflows aren't associated |
| 101 | - $sQuery = 'SELECT `workflow_id` FROM ' . KTUtil::getTableName('type_workflow_map'); | 101 | + $sQuery = 'SELECT `workflow_id` FROM ' . KTUtil::getTableName('type_workflow_map') .' m'; |
| 102 | $sQuery .= ' LEFT JOIN workflows w ON w.id = m.workflow_id | 102 | $sQuery .= ' LEFT JOIN workflows w ON w.id = m.workflow_id |
| 103 | WHERE document_type_id = ? AND w.enabled = 1'; | 103 | WHERE document_type_id = ? AND w.enabled = 1'; |
| 104 | 104 |