Skip to content

Commit

Permalink
Fixes #36590 - fix ACS error message for duplicate words
Browse files Browse the repository at this point in the history
  • Loading branch information
lfu committed Jul 13, 2023
1 parent ba8eb2a commit efb81f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def validate_each(record, attribute, value)
product = ::Katello::Product.find(value)
content_type = record.alternate_content_source.content_type
if product.repositories.with_type(content_type).has_url.empty?
record.errors[attribute] << N_("The product %{name} has no %{type} repositories with upstream URLs to add to the alternate content source.") % { name: product.name, type: content_type }
record.errors.add(attribute, N_("%{name} has no %{type} repositories with upstream URLs to add to the alternate content source.") % { name: product.name, type: content_type })
end
end
end
Expand Down

0 comments on commit efb81f9

Please sign in to comment.