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

[stable26] Do not throw while restoring unloaded files list entries #40606

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 24, 2023

Summary

When restoring files from trashbin while not all files are loaded into the file list (e.g. overflowing -> scrolling), then the restore all action throws because the $el of the unloaded elements in undefined.
In this case simply do not call remove.

For 27 this is fixed with files2vue.

Checklist

Make sure to only remove elements from file list (while restoring)
if the element was added to the file list (might not be added, if the list is scrolling).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added this to the Nextcloud 26.0.8 milestone Sep 24, 2023
@susnux
Copy link
Contributor Author

susnux commented Sep 24, 2023

/backport 95acf8a to stable25

@susnux susnux requested review from a team, Fenn-CS, Pytal and szaimen and removed request for a team September 24, 2023 15:59
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

Makes sense but didnt test

@susnux susnux merged commit 3970b36 into stable26 Sep 25, 2023
39 checks passed
@susnux susnux deleted the fix/trashbin-should-not-throw-while-restoring branch September 25, 2023 08:06
@blizzz blizzz mentioned this pull request Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants