mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +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
|
|
@ -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