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

🐛 Fix canMoveEntry() checks, update moveEntry() #1076

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

chetbae
Copy link
Contributor

@chetbae chetbae commented Aug 2, 2023

Fixes #1073 !

Folders could be moved into their own subfolders, causing the tree to remove the folder and the path to be unsearchable. Added a function that checks if the new parent is a subfolder of the moving folder. Tested and the problem is fixed.
Also a good point for #1061.

@chetbae chetbae requested a review from yinanazhou August 2, 2023 15:38
@chetbae chetbae self-assigned this Aug 2, 2023
@chetbae chetbae linked an issue Aug 2, 2023 that may be closed by this pull request
Copy link
Member

@yinanazhou yinanazhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@chetbae chetbae merged commit dddbae4 into develop Aug 3, 2023
3 checks passed
@chetbae chetbae deleted the 1073-moving-folder-to-subfolder-fix branch August 3, 2023 13:24
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

Successfully merging this pull request may close these issues.

Moving a folder into one of it's child folders should not be possible
2 participants