Skip to content

Commit

Permalink
Fixes #5413 - Fix content view removal error message
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis committed Apr 23, 2014
1 parent 5adc4ea commit b1397a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/katello/content_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ def check_remove_from_environment!(env)

dependencies.each do |key, name|
if (models = self.association(key).scoped.in_environment(env)).any?
errors << _("Cannot delete '%{view}' from environment '%{env}' due to associated %{dependent}: %{names}.") %
{view: self.name, env: env.name, names: models.map(&:name).join(", ")}
errors << _("Cannot remove '%{view}' from environment '%{env}' due to associated %{dependent}: %{names}.") %
{view: self.name, env: env.name, dependent: name, names: models.map(&:name).join(", ")}
end
end

Expand Down

0 comments on commit b1397a2

Please sign in to comment.