mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 14:37:20 +00:00
various error fixes in sql statements for ReceiptLog
This commit is contained in:
parent
a3b6ed8fb3
commit
ca9715c3bc
|
@ -1120,12 +1120,12 @@ class SeedDMS_Core_User {
|
||||||
"`tblDocumentReceiptLog`.`comment`, `tblDocumentReceiptLog`.`date`, ".
|
"`tblDocumentReceiptLog`.`comment`, `tblDocumentReceiptLog`.`date`, ".
|
||||||
"`tblDocumentReceiptLog`.`userID` ".
|
"`tblDocumentReceiptLog`.`userID` ".
|
||||||
"FROM `tblDocumentRecipients` ".
|
"FROM `tblDocumentRecipients` ".
|
||||||
"LEFT JOIN `tblDocumentReceiptLog` USING (`recipientID`) ".
|
"LEFT JOIN `tblDocumentReceiptLog` USING (`receiptID`) ".
|
||||||
"WHERE `tblDocumentRecipients`.`type`='0' ".
|
"WHERE `tblDocumentRecipients`.`type`='0' ".
|
||||||
($documentID==null ? "" : "AND `tblDocumentRecipients`.`documentID` = '". (int) $documentID ."' ").
|
($documentID==null ? "" : "AND `tblDocumentRecipients`.`documentID` = '". (int) $documentID ."' ").
|
||||||
($version==null ? "" : "AND `tblDocumentRecipients`.`version` = '". (int) $version ."' ").
|
($version==null ? "" : "AND `tblDocumentRecipients`.`version` = '". (int) $version ."' ").
|
||||||
"AND `tblDocumentRecipients`.`required`='". $this->_id ."' ".
|
"AND `tblDocumentRecipients`.`required`='". $this->_id ."' ".
|
||||||
"ORDER BY `tblDocumentReceiptLog`.`reviewLogID` DESC";
|
"ORDER BY `tblDocumentReceiptLog`.`receiptLogID` DESC";
|
||||||
$resArr = $db->getResultArray($queryStr);
|
$resArr = $db->getResultArray($queryStr);
|
||||||
if (is_bool($resArr) && $resArr === false)
|
if (is_bool($resArr) && $resArr === false)
|
||||||
return false;
|
return false;
|
||||||
|
@ -1147,13 +1147,13 @@ class SeedDMS_Core_User {
|
||||||
"`tblDocumentReceiptLog`.`comment`, `tblDocumentReceiptLog`.`date`, ".
|
"`tblDocumentReceiptLog`.`comment`, `tblDocumentReceiptLog`.`date`, ".
|
||||||
"`tblDocumentReceiptLog`.`userID` ".
|
"`tblDocumentReceiptLog`.`userID` ".
|
||||||
"FROM `tblDocumentRecipients` ".
|
"FROM `tblDocumentRecipients` ".
|
||||||
"LEFT JOIN `tblDocumentReceiptLog` USING (`reviewID`) ".
|
"LEFT JOIN `tblDocumentReceiptLog` USING (`receiptID`) ".
|
||||||
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`groupID` = `tblDocumentRecipients`.`required` ".
|
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`groupID` = `tblDocumentRecipients`.`required` ".
|
||||||
"WHERE `tblDocumentRecipients`.`type`='1' ".
|
"WHERE `tblDocumentRecipients`.`type`='1' ".
|
||||||
($documentID==null ? "" : "AND `tblDocumentRecipients`.`documentID` = '". (int) $documentID ."' ").
|
($documentID==null ? "" : "AND `tblDocumentRecipients`.`documentID` = '". (int) $documentID ."' ").
|
||||||
($version==null ? "" : "AND `tblDocumentRecipients`.`version` = '". (int) $version ."' ").
|
($version==null ? "" : "AND `tblDocumentRecipients`.`version` = '". (int) $version ."' ").
|
||||||
"AND `tblGroupMembers`.`userID`='". $this->_id ."' ".
|
"AND `tblGroupMembers`.`userID`='". $this->_id ."' ".
|
||||||
"ORDER BY `tblDocumentReceiptLog`.`reviewLogID` DESC";
|
"ORDER BY `tblDocumentReceiptLog`.`receiptLogID` DESC";
|
||||||
$resArr = $db->getResultArray($queryStr);
|
$resArr = $db->getResultArray($queryStr);
|
||||||
if (is_bool($resArr) && $resArr === false)
|
if (is_bool($resArr) && $resArr === false)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user