Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement OPER_IS_NULL when searching kb_article by category #1219

Open
wants to merge 1 commit into
base: 9.4.12
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion features/cerberusweb.kb/api/dao/kb_article.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,13 @@ static function getWhereSQL(DevblocksSearchCriteria $param) {
implode(',', $category_ids)
);
break;

case DevblocksSearchCriteria::OPER_IS_NULL:
return sprintf("NOT EXISTS (SELECT * FROM kb_article_to_category WHERE kb_article_to_category.kb_article_id=%s)",
self::getPrimaryKey()
);
break;

}
return 0;
break;
Expand Down Expand Up @@ -1908,4 +1915,4 @@ function doSetCriteria($field, $oper, $value) {
$this->renderPage = 0;
}
}
};
};