Commit 91f271fb41da5520ad967ddeaaa7cc06f566f28e
1 parent
8ebc3e7e
Merged in from DEV trunk...
KTS-2187 "Still possible to select a disabled workflow in automatic workflow dropdown" Fixed. Added a check for enabled. Committed By: Kevin Fourie Reviewed By: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6991 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
2 additions
and
2 deletions
plugins/ktstandard/workflow/FolderAssociator.php
| ... | ... | @@ -100,7 +100,7 @@ class FolderWorkflowAssignmentFolderAction extends KTFolderAction { |
| 100 | 100 | $oTemplate =& $this->oValidator->validateTemplate('ktstandard/workflow/folderconfigure'); |
| 101 | 101 | $fields = array(); |
| 102 | 102 | |
| 103 | - $aWorkflows = KTWorkflow::getList('start_state_id IS NOT NULL'); | |
| 103 | + $aWorkflows = KTWorkflow::getList('start_state_id IS NOT NULL AND enabled = 1'); | |
| 104 | 104 | $aVocab = array(); |
| 105 | 105 | $aVocab[] = _kt('No automatic workflow.'); |
| 106 | 106 | foreach ($aWorkflows as $oWorkflow) { | ... | ... |
plugins/ktstandard/workflow/TypeAssociator.php
| ... | ... | @@ -101,7 +101,7 @@ class WorkflowTypeAllocationDispatcher extends KTAdminDispatcher { |
| 101 | 101 | $sQuery = 'SELECT document_type_id, workflow_id FROM ' . KTUtil::getTableName('type_workflow_map'); |
| 102 | 102 | $aParams = array(); |
| 103 | 103 | $res = DBUtil::getResultArray(array($sQuery, $aParams)); |
| 104 | - $aWorkflows = KTWorkflow::getList('start_state_id IS NOT NULL'); | |
| 104 | + $aWorkflows = KTWorkflow::getList('start_state_id IS NOT NULL AND enabled = 1'); | |
| 105 | 105 | $aTypes = DocumentType::getList(); |
| 106 | 106 | |
| 107 | 107 | $aTypeMapping = array(); | ... | ... |