addRevisor and addRecipient return id of log entry

This commit is contained in:
Uwe Steinmann 2022-05-03 16:44:43 +02:00
parent bef41ad838
commit 7c1c81f7fc

View File

@ -5454,7 +5454,9 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
// Add recipient to event notification table.
//$this->_document->addNotify($userID, true);
return 0;
$receiptLogID = $db->getInsertID('tblDocumentReceiptLog', 'receiptLogID');
$db->dropTemporaryTable('ttreceiptid');
return $receiptLogID;
} /* }}} */
function addGrpRecipient($group, $requestUser) { /* {{{ */
@ -5513,7 +5515,9 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
return -1;
}
return 0;
$receiptLogID = $db->getInsertID('tblDocumentReceiptLog', 'receiptLogID');
$db->dropTemporaryTable('ttreceiptid');
return $receiptLogID;
} /* }}} */
/**
@ -5611,7 +5615,9 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
return -1;
}
return 0;
$revisionLogID = $db->getInsertID('tblDocumentRevisionLog', 'revisionLogID');
$db->dropTemporaryTable('ttrevisionid');
return $revisionLogID;
} /* }}} */
function addIndRevisor($user, $requestUser, $donotstart=true) { /* {{{ */