FIX: Ensure category_id is an integer

This commit is contained in:
Dan Ungureanu 2020-04-04 14:20:01 +03:00
parent b9d411a4eb
commit f8ec5f309a
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84
1 changed files with 1 additions and 1 deletions

View File

@ -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