demarches-normaliennes/app/views/shared/dossiers/editable_champs
Pierre de La Morinerie 71741c5f98 views: fix checkbox wrongly selected in multiple_drop_down_list
The check for whether the checkbox should be checked or not was made by
matching the whole string. Thus, given two options 'valid' and
'invalid', the check for the presence of 'valid' would succeed even when
only 'invalid' was present in the values (because
`'valid'.includes?('invalid')`.

The code now checks against the list of items in the selected_options.
2021-07-20 09:01:07 +02:00
..
_address.html.haml
_annuaire_education.html.haml
_carte.html.haml
_champ_label.html.haml
_champ_label_content.html.haml
_checkbox.html.haml
_civilite.html.haml
_communes.html.haml
_date.html.haml
_datetime.html.haml
_decimal_number.html.haml
_departements.html.haml
_dossier_link.html.haml
_drop_down_list.html.haml
_editable_champ.html.haml
_email.html.haml
_engagement.html.haml
_etablissement_titre.html.haml
_explication.html.haml
_header_section.html.haml
_iban.html.haml
_integer_number.html.haml
_linked_drop_down_list.html.haml
_multiple_drop_down_list.html.haml views: fix checkbox wrongly selected in multiple_drop_down_list 2021-07-20 09:01:07 +02:00
_number.html.haml
_pays.html.haml
_phone.html.haml
_piece_justificative.html.haml
_regions.html.haml
_repetition.html.haml
_siret.html.haml
_text.html.haml
_textarea.html.haml
_titre_identite.html.haml
_yes_no.html.haml