From 384b7f9fac23229707818a764d7e4695284680a4 Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Tue, 25 Apr 2023 14:15:40 +0200 Subject: [PATCH] simplify humanized groupe instructeur filter --- app/models/procedure_presentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/procedure_presentation.rb b/app/models/procedure_presentation.rb index 025c9ef7c..888d56c07 100644 --- a/app/models/procedure_presentation.rb +++ b/app/models/procedure_presentation.rb @@ -247,7 +247,7 @@ class ProcedurePresentation < ApplicationRecord Dossier.human_attribute_name("state.#{filter['value']}") elsif filter['table'] == 'groupe_instructeur' && filter['column'] == 'id' instructeur.groupe_instructeurs - .find { _1.id == filter['value'].to_i }&.label || I18n.t('activerecord.attributes.procedure_presentation.fields.groupe_instructeur.label') + " #{filter['value']}" + .find { _1.id == filter['value'].to_i }&.label || filter['value'] else filter['value'] end