Skip to content

Commit

Permalink
Fix: files_versions store
Browse files Browse the repository at this point in the history
fix ONLYOFFICE/onlyoffice-nextcloud#660

Signed-off-by: Sergey Linnik <[email protected]>
  • Loading branch information
LinneyS authored Jul 21, 2022
1 parent afedfad commit 61a3111
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/files_versions/lib/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ public static function store($filename) {

$eventDispatcher = \OC::$server->get(IEventDispatcher::class);
$fileInfo = $files_view->getFileInfo($filename);
if ($fileInfo === false) return false;
$id = $fileInfo->getId();
$nodes = \OC::$server->get(IRootFolder::class)->getUserFolder($uid)->getById($id);
foreach ($nodes as $node) {
Expand Down

0 comments on commit 61a3111

Please sign in to comment.