Commit 126685ea5f021cd82287c0ada9510293f58ee864
1 parent
f1c27562
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/trunk@8589 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
ktwebservice/webservice.php
| ... | ... | @@ -90,6 +90,7 @@ define('KTWS_ERR_INVALID_METADATA', 23); |
| 90 | 90 | define('KTWS_ERR_INVALID_REASON', 24); |
| 91 | 91 | define('KTWS_ERR_INVALID_DEPTH', 25); |
| 92 | 92 | define('KTWS_ERR_INVALID_DOCUMENT_TYPE', 26); |
| 93 | +define('KTWS_ERR_INVALID_WORKFLOW', 27); | |
| 93 | 94 | |
| 94 | 95 | define('KTWS_ERR_PROBLEM', 98); |
| 95 | 96 | define('KTWS_ERR_DB_PROBLEM', 99); |
| ... | ... | @@ -3056,7 +3057,7 @@ class KTWebService |
| 3056 | 3057 | return new SOAP_Value('return',"{urn:$this->namespace}$responseType", $kt); |
| 3057 | 3058 | } |
| 3058 | 3059 | |
| 3059 | - $response = KTWebService::_status(KTWS_ERR_INVALID_DOCUMENT); | |
| 3060 | + $response = KTWebService::_status(KTWS_ERR_INVALID_WORKFLOW); | |
| 3060 | 3061 | |
| 3061 | 3062 | $document = &$kt->get_document_by_id($document_id); |
| 3062 | 3063 | if (PEAR::isError($document)) | ... | ... |