mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +00:00
fix setReceiptByGrp()
This commit is contained in:
parent
7597cb1c74
commit
bbc6376bcf
|
@ -4328,18 +4328,19 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
// Return an error.
|
||||
return -3;
|
||||
}
|
||||
if ($receiptStatus[0]["status"]==-2) {
|
||||
$grpstatus = array_pop($receiptStatus["status"]);
|
||||
if ($grpstatus["status"] == S_LOG_USER_REMOVED) {
|
||||
// Group has been deleted from recipients
|
||||
return -4;
|
||||
}
|
||||
|
||||
// Check if the status is really different from the current status
|
||||
if ($receiptStatus[0]["status"] == $status)
|
||||
if ($grpstatus["status"] == $status)
|
||||
return 0;
|
||||
|
||||
$queryStr = "INSERT INTO `tblDocumentReceiptLog` (`recipientsID`, `status`,
|
||||
$queryStr = "INSERT INTO `tblDocumentReceiptLog` (`receiptID`, `status`,
|
||||
`comment`, `date`, `userID`) ".
|
||||
"VALUES ('". $receiptStatus[0]["recipientsID"] ."', '".
|
||||
"VALUES ('". $grpstatus["receiptID"] ."', '".
|
||||
(int) $status ."', ".$db->qstr($comment).", ".$db->getCurrentDatetime().", '".
|
||||
$requestUser->getID() ."')";
|
||||
$res=$db->getResult($queryStr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user