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

[4.x]: Error occures when moving an asset to a folder where a copy exists already #12920

Closed
yingban opened this issue Mar 17, 2023 · 2 comments
Closed

Comments

@yingban
Copy link

yingban commented Mar 17, 2023

What happened?

Description

in an asset folder, I have the following:
-- file1
-- folder/fle1

I tried to move the file1 to folder1, got the prompt with

  • replace it
  • keep both

I got the following error with both choices:
Uncaught TypeError: Cannot read properties of undefined (reading 'folderId') in handleConflictChoice function

Steps to reproduce

  1. create a subfolder with the same file as in parent folder
  2. try to move the file in parent folder to subfolder
  3. click "keep both" or "replace it"

Expected behavior

The move file should be moved

Actual behavior

Nothing happens and error in console occures

Craft CMS version

4.4.3

PHP version

8.0.28

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

@brandonkelly
Copy link
Member

Thanks for reporting that! Fixed for the next Craft 3 and 4 releases.

@brandonkelly
Copy link
Member

Craft 3.8.4 and 4.4.4 are out with that fix. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants