diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php index d160eb2422..2b562c4b4f 100644 --- a/apps/files_sharing/lib/SharedMount.php +++ b/apps/files_sharing/lib/SharedMount.php @@ -244,7 +244,7 @@ class SharedMount extends MountPoint implements MoveableMount { $query = $builder->select('storage') ->from('filecache') - ->where($builder->expr()->eq('fileid', $builder->createNamedParameter($this->getShare()->getNodeId()))); + ->where($builder->expr()->eq('fileid', $builder->createNamedParameter($this->getStorageRootId()))); return $query->execute()->fetchColumn(); }