* [bug#68076,done,1h] Filter project change approval review action.

This commit is contained in:
daitingting
2025-12-24 16:08:53 +08:00
parent 63bf494bda
commit 88d212345b
+3 -2
View File
@@ -1478,13 +1478,14 @@ class myModel extends model
$condition = "(`action` = 'reviewed' or `action` = 'approvalreview')";
if($browseType == 'createdbyme')
{
$condition = "(objectType in('story','case','feedback') and action = 'submitreview') OR ";
$condition = "objectType != 'projectchange' AND (";
$condition .= "(objectType in('story','case','feedback') and action = 'submitreview') OR ";
$condition .= "(objectType = 'review' and action = 'opened') OR ";
$condition .= "(objectType = 'deploy' and action = 'created') OR ";
$condition .= "(objectType = 'deploy' and action = 'submit') OR ";
$condition .= "(objectType = 'attend' and action = 'commited') OR ";
$condition .= "(`action` = 'approvalsubmit') OR ";
$condition .= "(objectType in('leave','makeup','overtime','lieu') and action = 'created')";
$condition .= "(objectType in('leave','makeup','overtime','lieu') and action = 'created'))";
$condition = "($condition)";
}
$actionIdList = $this->dao->select('MAX(`id`) as `id`')->from(TABLE_ACTION)