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

Correct a bug with server-side identification of subfolders which should be deleted during a recursive folder deletion operation. #7381

Closed
TheGiddyLimit opened this issue Jun 24, 2022 · 0 comments
Assignees
Labels
bug Functionality which is not working as intended folders Issues related to Folders and other organizational tools

Comments

@TheGiddyLimit
Copy link

  • Foundry v10 (270)
folders.mp4
(async () => {
	const outer = await Folder.create({
		name: "Outer",
		type: "Actor",
	});

	const inner = await Folder.create({
		name: "Inner",
		type: "Actor",
		folder: outer.id,
	});

	const actor = await Actor.create({
		name: "Repro",
		type: "character",
		folder: inner.id,
	});

	await outer.delete({deleteSubfolders: true, deleteContents: true});

	location.reload();

	// observe that the structure `Inner/Repro` still exists
})();

Expected:

image

Actual:

image

@TheGiddyLimit TheGiddyLimit added the bug Functionality which is not working as intended label Jun 24, 2022
@aaclayton aaclayton added the folders Issues related to Folders and other organizational tools label Jun 25, 2022
@aaclayton aaclayton added this to the Version 10 - Development 2 milestone Jun 25, 2022
@aaclayton aaclayton self-assigned this Jun 26, 2022
@aaclayton aaclayton changed the title Inner documents deleted via Folder "Delete All" re-appear on page reload Correct a bug with server-side identification of subfolders which should be deleted during a recursive folder deletion operation. Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality which is not working as intended folders Issues related to Folders and other organizational tools
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants