FIX: tags created from category modal need to be normalized as usual
This commit is contained in:
parent
31c0a22266
commit
c3ceb6ef7d
|
@ -315,7 +315,8 @@ SQL
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def allowed_tags=(tag_names)
|
def allowed_tags=(tag_names_arg)
|
||||||
|
tag_names = DiscourseTagging.tags_for_saving(tag_names_arg, Guardian.new(Discourse.system_user)) || []
|
||||||
if self.tags.pluck(:name).sort != tag_names.sort
|
if self.tags.pluck(:name).sort != tag_names.sort
|
||||||
self.tags = Tag.where(name: tag_names).all
|
self.tags = Tag.where(name: tag_names).all
|
||||||
if self.tags.size < tag_names.size
|
if self.tags.size < tag_names.size
|
||||||
|
|
Loading…
Reference in New Issue