-
-
Notifications
You must be signed in to change notification settings - Fork 529
[3.x] Fix issue where moving resource above another would make the "target" a container. #16001
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work as it should
Made two minor code suggestions to make sure the validation actually does something, but I can confirm this resolves the issue with random assignments. |
Co-authored-by: Mark Hamstra <[email protected]>
I think a botched trying to add brevity to the title of this merged change. It would be helpful if we can more concisely describe changes like this when submitting. I know it's not easy sometimes. |
What would have been a better title? |
What does it do?
Make sure we only mark the target as folder when the node is appended to another node.
If the point we are dragging/dropping the node is "above/below", the target resource is a sibling and not a parent and therefore it should not become a container/folder.
Why is it needed?
Fix issue where moving resource above another would make the "target" a container.
How to test
Drag and drop a resource above another resource that's not a container/folder.
Also see #15991
Related issue(s)/PR(s)
Resolves #15991