Commit 93cfcb6b30c0660d2ee276907724efaba0e75599

Authored by kevin_fourie
1 parent 85d82998

KTS-1779

"Error with interface when deleting a workflow state. "
Fixed.

Reviewed By: Kevin, Conrad

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6375 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktcore/admin/workflowsv2.php
... ... @@ -893,6 +893,8 @@ class KTWorkflowAdminV2 extends KTAdminDispatcher {
893 893 'context' => $this,
894 894 ));
895 895 $other_states = sprintf('id != %d', $this->oState->getId());
  896 + $other_states .= sprintf(' AND workflow_id = %d', $this->oWorkflow->getId());
  897 +
896 898 $oForm->setWidgets(array(
897 899 array('ktcore.widgets.entityselection', array(
898 900 'vocab' => KTWorkflowState::getList($other_states),
... ...