mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-22 04:45:46 -04:00
FIX: category validation in composer was still using categoryName instead of categoryId
This commit is contained in:
parent
94d68d2453
commit
32af23884e
1 changed files with 2 additions and 2 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue