fix(conditionel): error when using operator eq/not_eq with a multi dropdown
This commit is contained in:
parent
52dff40197
commit
21a829ec1e
7 changed files with 59 additions and 1 deletions
|
@ -56,6 +56,10 @@ class TypesDeChampEditor::ConditionsErrorsComponent < ApplicationComponent
|
|||
right: right.to_s.downcase)
|
||||
in { type: :required_list }
|
||||
t('required_list', scope: '.errors')
|
||||
in { type: :required_include, operator_name: "Logic::Eq" }
|
||||
t("required_include.eq", scope: '.errors')
|
||||
in { type: :required_include, operator_name: "Logic::NotEq" }
|
||||
t("required_include.not_eq", scope: '.errors')
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
---
|
||||
fr:
|
||||
en:
|
||||
errors:
|
||||
not_available: "A targeted field is not available."
|
||||
unmanaged: "The field « %{libelle} » is a « %{type_champ} » and cannot be used as conditional source."
|
||||
incompatible: "The field « %{libelle} » is a « %{type_champ} ». It cannot be %{operator} « %{right} »."
|
||||
required_number: "« %{operator} » applies only to number."
|
||||
required_list: "The « include » operator only applies to simple or multiple choice."
|
||||
required_include:
|
||||
eq: "The « is » operator does not apply to multiple dropdown list. Select the « includes » operator."
|
||||
not_eq: "The « is not » operator does not apply to multiple dropdown list."
|
||||
not_included: "« %{right} » is not included in « %{libelle} »."
|
||||
|
|
|
@ -6,4 +6,7 @@ fr:
|
|||
incompatible: "Le champ « %{libelle} » est de type « %{type_champ} ». Il ne peut pas être %{operator} « %{right} »."
|
||||
required_number: "« %{operator} » ne s'applique qu'à des nombres."
|
||||
required_list: "Lʼopérateur « inclus » ne s'applique qu'au choix simple ou multiple."
|
||||
required_include:
|
||||
eq: "Lʼopérateur « est » ne s'applique pas au choix multiple. Sélectionnez l’opérateur « contient »."
|
||||
not_eq: "Lʼopérateur « n’est pas » ne s'applique pas au choix multiple."
|
||||
not_included: "« %{right} » ne fait pas partie de « %{libelle} »."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue