Commit a20092d5e3043323952ac10e66b3e1f33a2a11ca
1 parent
84184dd1
KTS-1362: Fix some typos which prevented this from working.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6078 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
5 deletions
lib/workflow/workflowutil.inc.php
| @@ -800,23 +800,23 @@ class KTWorkflowUtil { | @@ -800,23 +800,23 @@ class KTWorkflowUtil { | ||
| 800 | // before we do a delete. | 800 | // before we do a delete. |
| 801 | $doc = KTUtil::getTableName('document_metadata_version'); | 801 | $doc = KTUtil::getTableName('document_metadata_version'); |
| 802 | $aDocQuery = array( | 802 | $aDocQuery = array( |
| 803 | - 'UPDATE $doc SET workflow_state_id = ? WHERE workflow_state_id = ?', | ||
| 804 | - array($state_id, $replacement_id), | 803 | + "UPDATE $doc SET workflow_state_id = ? WHERE workflow_state_id = ?", |
| 804 | + array($replacement_id, $state_id), | ||
| 805 | ); | 805 | ); |
| 806 | $res = DBUtil::runQuery($aDocQuery); | 806 | $res = DBUtil::runQuery($aDocQuery); |
| 807 | if (PEAR::isError($res)) { return $res; } | 807 | if (PEAR::isError($res)) { return $res; } |
| 808 | 808 | ||
| 809 | $wf = KTUtil::getTableName('workflow_transitions'); | 809 | $wf = KTUtil::getTableName('workflow_transitions'); |
| 810 | $aTransitionQuery = array( | 810 | $aTransitionQuery = array( |
| 811 | - 'UPDATE $wf SET target_state_id = ? WHERE workflow_state_id = ?', | ||
| 812 | - array($state_id, $replacement_id), | 811 | + "UPDATE $wf SET target_state_id = ? WHERE workflow_state_id = ?", |
| 812 | + array($replacement_id, $state_id), | ||
| 813 | ); | 813 | ); |
| 814 | $res = DBUtil::runQuery($aTransitionQuery); | 814 | $res = DBUtil::runQuery($aTransitionQuery); |
| 815 | if (PEAR::isError($res)) { return $res; } | 815 | if (PEAR::isError($res)) { return $res; } |
| 816 | 816 | ||
| 817 | $wf = KTUtil::getTableName('workflow_state_transitions'); | 817 | $wf = KTUtil::getTableName('workflow_state_transitions'); |
| 818 | $aTransitionQuery = array( | 818 | $aTransitionQuery = array( |
| 819 | - 'DELETE FROM $wf WHERE state_id = ?', | 819 | + "DELETE FROM $wf WHERE state_id = ?", |
| 820 | array($state_id), | 820 | array($state_id), |
| 821 | ); | 821 | ); |
| 822 | $res = DBUtil::runQuery($aTransitionQuery); | 822 | $res = DBUtil::runQuery($aTransitionQuery); |