Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#roots should look for parent_id 0 or nil #1

Open
ramontayag opened this issue Nov 12, 2011 · 0 comments
Open

#roots should look for parent_id 0 or nil #1

ramontayag opened this issue Nov 12, 2011 · 0 comments

Comments

@ramontayag
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant