aliases: don't complain about missing wiki pages.

Don't complain about the tags not having wiki pages when requesting tag
aliases.
This commit is contained in:
evazion
2020-05-10 21:29:07 -05:00
parent 71a3cc89fd
commit 54bae4017d

View File

@@ -116,8 +116,6 @@ class TagAlias < TagRelationship
def wiki_pages_present
if antecedent_wiki.present? && consequent_wiki.present?
errors[:base] << "The tag alias [[#{antecedent_name}]] -> [[#{consequent_name}]] has conflicting wiki pages. [[#{consequent_name}]] should be updated to include information from [[#{antecedent_name}]] if necessary."
elsif antecedent_wiki.blank? && consequent_wiki.blank?
errors[:base] << "The #{consequent_name} tag needs a corresponding wiki page"
end
end