mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
FIX: Ensure category_id is an integer
This commit is contained in:
parent
b9d411a4eb
commit
f8ec5f309a
@ -167,7 +167,7 @@ class Category < ActiveRecord::Base
|
||||
SQL
|
||||
DB.query_single(
|
||||
sql,
|
||||
category_id: category_id,
|
||||
category_id: category_id.to_i,
|
||||
max_category_nesting: SiteSetting.max_category_nesting
|
||||
)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user