Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@blankse
Copy link
Contributor

@blankse blankse commented Apr 3, 2022

Fix the Asset\Service::copyContents() method. Element\Service::cloneMe() accept only objects with ElementInterface as parameter. The other copyContents() (Document/Object) also set the properties direct.
Splitting up from #11826

@blankse blankse force-pushed the fix_asset_service_copy_contents branch from 92bbe45 to ff49aab Compare April 4, 2022 07:39
@dvesh3 dvesh3 added the Bug label Apr 4, 2022
@dvesh3 dvesh3 added this to the 10.3.5 milestone Apr 4, 2022
@dvesh3 dvesh3 merged commit e649598 into pimcore:10.3 Apr 6, 2022
@dvesh3
Copy link
Contributor

dvesh3 commented Apr 6, 2022

@blankse thanks!

@blankse blankse deleted the fix_asset_service_copy_contents branch April 6, 2022 12:39
@brusch
Copy link
Member

brusch commented Apr 6, 2022

Could be dangerous, as it keeps the references, right?
Should we do at least a deep copy? Or maybe array_map(... clone ...).

@blankse
Copy link
Contributor Author

blankse commented Apr 6, 2022

@brusch Yes this was also in my thoughts. But this must be fixed/changed in all 3 element types.

@dvesh3
Copy link
Contributor

dvesh3 commented Apr 7, 2022

@brusch @blankse please see #11860

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants