Commit 6cbb827ece647cd95b924bb3729aae8163204602
1 parent
d8a07bd4
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix api article filter
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/noosfero/api/helpers.rb
| @@ -97,6 +97,7 @@ | @@ -97,6 +97,7 @@ | ||
| 97 | if params[:categories_ids] | 97 | if params[:categories_ids] |
| 98 | articles = articles.joins(:categories).where('category_id in (?)', params[:categories_ids]) | 98 | articles = articles.joins(:categories).where('category_id in (?)', params[:categories_ids]) |
| 99 | end | 99 | end |
| 100 | + articles | ||
| 100 | end | 101 | end |
| 101 | 102 | ||
| 102 | def find_task(tasks, id) | 103 | def find_task(tasks, id) |