Skip to content

#roots should look for parent_id 0 or nil #1

Description

@ramontayag

Why? When choosing a parent from a select box, the "include_blank" value is a blank string. This end up creating a tree node with a nil value for a parent, even if the database default is 0. Besides, there's no value in differentiating parent_id of nil or 0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions