From bc2dbbf8d90a69536586fafcd1014022be32da34 Mon Sep 17 00:00:00 2001 From: Markus Bucher Date: Mon, 16 Dec 2024 19:22:33 +0100 Subject: [PATCH] Fixes #38106 - do not translate symbol --- app/validators/belongs_to_host_taxonomy_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/validators/belongs_to_host_taxonomy_validator.rb b/app/validators/belongs_to_host_taxonomy_validator.rb index b92270c03cd..4929463c22b 100644 --- a/app/validators/belongs_to_host_taxonomy_validator.rb +++ b/app/validators/belongs_to_host_taxonomy_validator.rb @@ -16,7 +16,7 @@ def validate_each(record, attribute, value) unless (attribute_taxonomy_ids & host_taxonomy_ids).any? attribute_name = attribute.to_s.end_with?('_id') ? attribute : "#{attribute}_id" - record.errors.add(attribute_name, _("is not defined for host's %s") % _(taxonomy)) + record.errors.add(attribute_name, _("is not defined for host's %s") % _(taxonomy.to_s)) end end end