mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Fix for loading uncategorized topics when slug for uncategorized_name is blank
This commit is contained in:
parent
5cd6c85e8b
commit
f76d6c0f3f
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class ListController < ApplicationController
|
|||
list = nil
|
||||
|
||||
# If they choose uncategorized, return topics NOT in a category
|
||||
if params[:category] == Slug.for(SiteSetting.uncategorized_name) || params[:category] == SiteSetting.uncategorized_name
|
||||
if params[:category] == Slug.for(SiteSetting.uncategorized_name) or params[:category] == SiteSetting.uncategorized_name or params[:category] == 'null-category'
|
||||
list = query.list_uncategorized
|
||||
else
|
||||
@category = Category.where("slug = ? or id = ?", params[:category], params[:category].to_i).includes(:featured_users).first
|
||||
|
|
Loading…
Reference in a new issue