Skip to content

Commit

Permalink
[5.x] Set path on asset folder when moving (#10813)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Sep 18, 2024
1 parent 9722f73 commit 6b9eb8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Assets/AssetFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function delete()
});
$cache->save();

AssetFolderDeleted::dispatch($this);
AssetFolderDeleted::dispatch(clone $this);

return $this;
}
Expand Down Expand Up @@ -183,6 +183,8 @@ public function move($parent, $name = null)
$this->container()->assets($oldPath)->each->move($newPath);
$this->delete();

$this->path($newPath);

return $folder;
}

Expand Down

0 comments on commit 6b9eb8e

Please sign in to comment.