fix checkbox mandatory champ

This commit is contained in:
Kara Diaby 2022-09-27 21:56:51 +02:00
parent ae2a5d3eee
commit e1999d5729

View file

@ -27,4 +27,8 @@ class Champs::CheckboxChamp < Champs::YesNoChamp
def for_export
true? ? 'on' : 'off'
end
def mandatory_blank_and_visible?
mandatory? && (blank? || !true?)
end
end