Commit 2c9c825a5f1721e17cb2b6d3d4dbd6342ec4b69f
1 parent
1c0b3c81
Merged in from DEV trunk...
WSA-130 "Change error code for start_workflow" Added INVALID_WORKFLOW error for start_workflow Committed By: Martin Kirsten Reviewed By: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@8594 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
ktwebservice/webservice.php
| ... | ... | @@ -89,6 +89,7 @@ define('KTWS_ERR_INVALID_METADATA', 23); |
| 89 | 89 | define('KTWS_ERR_INVALID_REASON', 24); |
| 90 | 90 | define('KTWS_ERR_INVALID_DEPTH', 25); |
| 91 | 91 | define('KTWS_ERR_INVALID_DOCUMENT_TYPE', 26); |
| 92 | +define('KTWS_ERR_INVALID_WORKFLOW', 27); | |
| 92 | 93 | |
| 93 | 94 | define('KTWS_ERR_PROBLEM', 98); |
| 94 | 95 | define('KTWS_ERR_DB_PROBLEM', 99); |
| ... | ... | @@ -3055,7 +3056,7 @@ class KTWebService |
| 3055 | 3056 | return new SOAP_Value('return',"{urn:$this->namespace}$responseType", $kt); |
| 3056 | 3057 | } |
| 3057 | 3058 | |
| 3058 | - $response = KTWebService::_status(KTWS_ERR_INVALID_DOCUMENT); | |
| 3059 | + $response = KTWebService::_status(KTWS_ERR_INVALID_WORKFLOW); | |
| 3059 | 3060 | |
| 3060 | 3061 | $document = &$kt->get_document_by_id($document_id); |
| 3061 | 3062 | if (PEAR::isError($document)) | ... | ... |