mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-13 23:42:13 +09:00
#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:
parent
1b5b2501c5
commit
8b4d2a5079
3 changed files with 10 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue