fix checkbox mandatory champ
This commit is contained in:
parent
ae2a5d3eee
commit
e1999d5729
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue