mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Fix replying in a topic that is uncategorized after allow_uncategorized_topics is set to false
This commit is contained in:
parent
560fb15d8a
commit
264dd65410
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ Discourse.Composer = Discourse.Model.extend({
|
|||
// reply is always required
|
||||
if (this.get('replyLength') < Discourse.SiteSettings.min_post_length) return true;
|
||||
|
||||
if (!Discourse.SiteSettings.allow_uncategorized_topics && !this.get('categoryName')) return true;
|
||||
if (this.get('editTitle') && !Discourse.SiteSettings.allow_uncategorized_topics && !this.get('categoryName')) return true;
|
||||
|
||||
return false;
|
||||
}.property('loading', 'editTitle', 'titleLength', 'targetUsernames', 'replyLength', 'categoryName'),
|
||||
|
|
Loading…
Reference in a new issue