Skip to content

Commit

Permalink
[Bug]: copyRecursive fails on copying a folder with emails (pimcore#1…
Browse files Browse the repository at this point in the history
…7758)

* fix: getChildren returns null values form cache

* fix: remove unnecessary import
  • Loading branch information
lukmzig authored Oct 23, 2024
1 parent 66c2bcd commit 814b698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Element/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ protected function updateChildren(DataObject|Document|Asset\Folder $target, Elem
{
//check in case of recursion
$found = false;
foreach ($target->getChildren() as $child) {
foreach ($target->getChildren()->load() as $child) {
if ($child->getId() == $new->getId()) {
$found = true;

Expand Down

0 comments on commit 814b698

Please sign in to comment.