Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Default value is null for existing objects #6027

@kubaplas

Description

@kubaplas

Bug Report

Default values are displayed in admin panel only for newly created objects

Expected behavior

When adding a new select field with default value, all existing objects should have this value set.

Actual behavior

Only newly created objects have the default value set. Previously existing objects have (Empty) in edit mode and null on the grid displayed.

Steps to reproduce

Add new select field to an existing class, set default value. Open existing object - it will have no value set ((Empty)). Open grid - null is displayed there.
Create new object - it has default value correctly displayed in both cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions