FIX: use correct validation method name for default_categories_normal. (#20801)

When we renamed the `default_categories_regular` to `default_categories_normal` we missed a site setting validation method. It allowed the duplicate category ids in `default_categories_normal` site setting and caused the problem in user registration process.

5176c689e9
This commit is contained in:
Vinoth Kannan
2023-03-24 11:40:37 +05:30
committed by GitHub
parent 7c6a8f1c74
commit ed6f7b1e6d
2 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,10 @@ RSpec.describe SiteSettings::Validations do
expect { SiteSetting.default_categories_tracking = "#{category.id}" }.to raise_error(
Discourse::InvalidParameters,
)
expect { SiteSetting.default_categories_normal = "#{category.id}" }.to raise_error(
Discourse::InvalidParameters,
)
end
end