mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 19:12:42 +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 an error.
|
||||||
return -3;
|
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
|
// Group has been deleted from recipients
|
||||||
return -4;
|
return -4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the status is really different from the current status
|
// Check if the status is really different from the current status
|
||||||
if ($receiptStatus[0]["status"] == $status)
|
if ($grpstatus["status"] == $status)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
$queryStr = "INSERT INTO `tblDocumentReceiptLog` (`recipientsID`, `status`,
|
$queryStr = "INSERT INTO `tblDocumentReceiptLog` (`receiptID`, `status`,
|
||||||
`comment`, `date`, `userID`) ".
|
`comment`, `date`, `userID`) ".
|
||||||
"VALUES ('". $receiptStatus[0]["recipientsID"] ."', '".
|
"VALUES ('". $grpstatus["receiptID"] ."', '".
|
||||||
(int) $status ."', ".$db->qstr($comment).", ".$db->getCurrentDatetime().", '".
|
(int) $status ."', ".$db->qstr($comment).", ".$db->getCurrentDatetime().", '".
|
||||||
$requestUser->getID() ."')";
|
$requestUser->getID() ."')";
|
||||||
$res=$db->getResult($queryStr);
|
$res=$db->getResult($queryStr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user