mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
When creating a topic, don't select a category by default when allow_uncategorized_topics is false. Also, added category validation on the server to enforce allow_uncategorized_topics.
This commit is contained in:
@@ -186,5 +186,5 @@ test('initial category when uncategorized is allowed', function() {
|
||||
test('initial category when uncategorized is not allowed', function() {
|
||||
Discourse.SiteSettings.allow_uncategorized_topics = false;
|
||||
var composer = Discourse.Composer.open({action: 'createTopic', draftKey: 'asfd', draftSequence: 1});
|
||||
ok(composer.get('categoryId') !== undefined, "Not uncategorized by default");
|
||||
ok(composer.get('categoryId') === undefined, "Uncategorized by default. Must choose a category.");
|
||||
});
|
||||
Reference in New Issue
Block a user