Merge pull request #4779 from nonamethanks/fix-typo
Tag implications: fix typo in validate error
This commit is contained in:
@@ -124,7 +124,7 @@ class TagImplication < TagRelationship
|
||||
|
||||
max_count = MAXIMUM_TAG_PERCENTAGE * PostQueryBuilder.new("~#{antecedent_name} ~#{consequent_name}").fast_count(timeout: 0).to_i
|
||||
if antecedent_tag.post_count > max_count && max_count > 0
|
||||
errors.add(:base, "'#{antecedent_name}' can't make up than #{(MAXIMUM_TAG_PERCENTAGE * 100).to_i}% of '#{consequent_name}'")
|
||||
errors.add(:base, "'#{antecedent_name}' can't make up more than #{(MAXIMUM_TAG_PERCENTAGE * 100).to_i}% of '#{consequent_name}'")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user