Merge pull request #4759 from nonamethanks/fix-burs
BURs: don't check for category when implicating empty tags
This commit is contained in:
@@ -99,7 +99,10 @@ class TagImplication < TagRelationship
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Require tags to have the same category. Doesn't apply when either tag is empty,
|
||||||
|
# because they could have been populated from a previous update script.
|
||||||
def tag_categories_are_compatible
|
def tag_categories_are_compatible
|
||||||
|
return if antecedent_tag.empty? || consequent_tag.empty?
|
||||||
if antecedent_tag.category != consequent_tag.category
|
if antecedent_tag.category != consequent_tag.category
|
||||||
errors.add(:base, "Can't imply a #{antecedent_tag.category_name.downcase} tag to a #{consequent_tag.category_name.downcase} tag")
|
errors.add(:base, "Can't imply a #{antecedent_tag.category_name.downcase} tag to a #{consequent_tag.category_name.downcase} tag")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user