mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 08:07:17 +08:00
FIX: category validation in composer was still using categoryName instead of categoryId
This commit is contained in:
@ -364,10 +364,10 @@ Discourse.ComposerView = Discourse.View.extend(Ember.Evented, {
|
||||
}.property('model.titleLength', 'model.missingTitleCharacters', 'model.minimumTitleLength'),
|
||||
|
||||
categoryValidation: function() {
|
||||
if( !Discourse.SiteSettings.allow_uncategorized_topics && !this.get('model.categoryName')) {
|
||||
if( !Discourse.SiteSettings.allow_uncategorized_topics && !this.get('model.categoryId')) {
|
||||
return Discourse.InputValidation.create({ failed: true, reason: I18n.t('composer.error.category_missing') });
|
||||
}
|
||||
}.property('model.categoryName'),
|
||||
}.property('model.categoryId'),
|
||||
|
||||
replyValidation: function() {
|
||||
var replyLength = this.get('model.replyLength'),
|
||||
|
Reference in New Issue
Block a user