#17 Document temp status check is wrong.

when Document update with old status only if the temp, pay point


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8432 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-06-02 04:41:01 +00:00
parent 1b5b2501c5
commit 8b4d2a5079
3 changed files with 10 additions and 8 deletions

View file

@ -1662,6 +1662,8 @@ class documentController extends document {
$oDocument = $oDocumentModel->getDocument($obj->document_srl, $this->grant->manager);
// Update if already exists
if($oDocument->isExists() && $oDocument->document_srl == $obj->document_srl) {
//if exist document status is already public, use temp status can point problem
$obj->status = $oDocument->get('status');
$output = $oDocumentController->updateDocument($oDocument, $obj);
$msg_code = 'success_updated';
// Otherwise, get a new