"inner join rules r on r.id = i.rule_id " +
"inner join projects c on c.uuid = i.component_uuid ";
- private static final String PROJECT_FILTER = " and c.project_uuid = ?";
+ private static final String PROJECT_FILTER = " and c.project_uuid = ? and i.project_uuid = ? ";
private static final String ISSUE_KEY_FILTER_PREFIX = " and i.kee in (";
private static final String ISSUE_KEY_FILTER_SUFFIX = ")";
if (projectUuid != null) {
stmt.setString(index, projectUuid);
index++;
+ stmt.setString(index, projectUuid);
+ index++;
}
if (issueKeys != null) {
for (String key : issueKeys) {