mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
adding a review returns the log id not 0
This commit is contained in:
parent
989572e069
commit
2b1f637e9c
|
@ -3957,13 +3957,12 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
"VALUES ('". $reviewID ."', '0', '', ".$db->getCurrentDatetime().", '". $requestUser->getID() ."')";
|
||||
$res = $db->getResult($queryStr);
|
||||
if (is_bool($res) && !$res) {
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Add reviewer to event notification table.
|
||||
//$this->_document->addNotify($groupID, false);
|
||||
|
||||
return 0;
|
||||
$reviewLogID = $db->getInsertID('tblDocumentReviewLog', 'reviewLogID');
|
||||
$db->dropTemporaryTable('ttreviewid');
|
||||
return $reviewLogID;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
|
@ -4274,13 +4273,11 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
"VALUES ('". $approveID ."', '0', '', ".$db->getCurrentDatetime().", '". $requestUser->getID() ."')";
|
||||
$res = $db->getResult($queryStr);
|
||||
if (is_bool($res) && !$res) {
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Add approver to event notification table.
|
||||
//$this->_document->addNotify($groupID, false);
|
||||
|
||||
$approveLogID = $db->getInsertID('tblDocumentApproveLog', 'approveLogID');
|
||||
$approveLogID = $db->getInsertID('tblDocumentApproveLog', 'approveLogID');
|
||||
$db->dropTemporaryTable('ttapproveid');
|
||||
return $approveLogID;
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user