Skip to content

Bug: editing nullable boolean forces it to false #3145

@sedubois

Description

@sedubois

When a model has a boolean which can be nil, the "Show" tab indeed shows the boolean as nil with the help of a grey icon:

Screenshot 2019-05-25 at 15 43 12

However in the Edit tab, the value is displayed as an unticked checkbox instead of reflecting the fact that the value is nil:

Screenshot 2019-05-25 at 15 43 24

And when saving the Edit form, it then applies the value false to the field, instead of keeping it nil as it should. It means that currently I cannot use rails_admin to edit my records' other fields, out of fear of inadvertently modifying these boolean values which should stay nil.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions