mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 11:52:14 +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
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
}
|
||||
|
||||
function isExists() {
|
||||
return $this->document_srl ? true : false;
|
||||
return $this->document_srl ? true : false;
|
||||
}
|
||||
|
||||
function isGranted() {
|
||||
|
|
|
|||
|
|
@ -95,14 +95,14 @@
|
|||
* Temporary storage at the point in 1.2.3 changed to avoid payment
|
||||
**/
|
||||
function triggerUpdateDocument(&$obj) {
|
||||
// if status is TEMP or PUBLIC... give not point, only status is empty
|
||||
if(!$obj->status)
|
||||
{
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oModuleModel = &getModel('module');
|
||||
$oDocumentModel = &getModel('document');
|
||||
$document_srl = $obj->document_srl;
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
|
||||
$document_srl = $obj->document_srl;
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
// if status is TEMP or PUBLIC... give not point, only status is empty
|
||||
if($oDocument->get('status') == 'TEMP' && $obj->status != 'TEMP')
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
// Get the point module information
|
||||
$config = $oModuleModel->getModuleConfig('point');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue