Skip to content
New issue

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

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

Already on GitHub? # to your account

Prevents attempt to move an item to itself as a parent #18550

Open
wants to merge 1 commit into
base: v15/dev
Choose a base branch
from

Conversation

AndyButland
Copy link
Contributor

@AndyButland AndyButland commented Mar 4, 2025

Prerequisites

  • I have added steps to test this contribution in the description below

Resolves: #18544

Description

The linked issue notes that it's possible to select the current item as the parent for a move, which isn't valid.

Ideally this would be solved via the pickableFilter I would imagine, but I had trouble getting that to work. So instead have just checked for this condition after selection and presented a friendlier error message.

It would be better to not allow selection in the first place, so if you can find a way to do that, please do, and close this! But if it's actually tricky, this would probably be an improvement on what we have currently.

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

Successfully merging this pull request may close these issues.

1 participant