Commit 7f05663c01a3cac834ca1cfaf5deefd049d85819
1 parent
2db2f299
WSA-107
"Checkout returns kt_response and not kt_document_detail" Fixed. Committed By: Conrad Vermeulen Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8010 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
ktapi/KTAPIDocument.inc.php
| ... | ... | @@ -1076,12 +1076,12 @@ class KTAPI_Document extends KTAPI_FolderItem |
| 1076 | 1076 | if (is_null($result)) |
| 1077 | 1077 | { |
| 1078 | 1078 | DBUtil::rollback(); |
| 1079 | - return new KTAPI_Error(KTAPI_ERROR_INTERNAL_ERROR); | |
| 1079 | + return new PEAR_Error(KTAPI_ERROR_INTERNAL_ERROR . ': Null result returned but not expected.'); | |
| 1080 | 1080 | } |
| 1081 | 1081 | if (PEAR::isError($result)) |
| 1082 | 1082 | { |
| 1083 | 1083 | DBUtil::rollback(); |
| 1084 | - return new KTAPI_Error(sprintf(_kt("Unexpected validation failure: %s."), $result->getMessage())); | |
| 1084 | + return new KTAPI_Error('Unexpected validation failure', $result); | |
| 1085 | 1085 | } |
| 1086 | 1086 | DBUtil::commit(); |
| 1087 | 1087 | ... | ... |