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

Added Tags filter for Joomla! articles #2561

wants to merge 8 commits into
base: develop

Added type check and cast IDs to integer

  • Loading branch information
Kubik-Rubik committed Nov 1, 2019
commit 59c8719ad5b90bc6051bbb9f5c0e97648796d577
@@ -155,9 +155,9 @@ public function tags($tagIds = [])
return $this;
$tagIdsArray = $tagIds['id'][0];
$tagIdsArray = array_map('intval', $tagIds['id'][0]);
$this->query->join('INNER', '#__contentitem_tag_map AS t ON t.content_item_id =');
return $this->where('t.tag_id', 'IN', $tagIdsArray);
return $this->where('t.tag_id', 'IN', $tagIdsArray)->where('t.type_alias', '=', 'com_content.article');
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.