Skip to content

Enumeration table required checkbox broken #15

@sampottinger

Description

@sampottinger

Hey!

So, the problem lies in views for fields with subfields like enumeration table. Those fields have controls with certain class names like required-input and some of their children have controls with the same name like required-input. Something like view.find('.required-input').is(':checked'); on line 65 in enumeration_table.js will actually get the checked state of the children's required-input. So, instead of reporting if required-input is checked for the enumeration table, it may report if, for example, the text input within the enumeration table is required.

This is easily fixed with view.find('.required-input').first().is(':checked');. I will try to put together a fix and submit shortly. Should be fairly plainless... it was a very small mistake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions