From 048b3c015f9f499973388711a13c5ef0f1f8e4dc Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 25 Jan 2022 15:10:23 -0700 Subject: [PATCH] Collabora: Use the same file ID when accessing via share --- api/src/Vfs/Sqlfs/StreamWrapper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Vfs/Sqlfs/StreamWrapper.php b/api/src/Vfs/Sqlfs/StreamWrapper.php index c5a3e8f64f..22b64c1fdd 100644 --- a/api/src/Vfs/Sqlfs/StreamWrapper.php +++ b/api/src/Vfs/Sqlfs/StreamWrapper.php @@ -1652,9 +1652,9 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface $fs_id = $stat['ino']; $query = 'SELECT MIN(B.fs_id) -FROM '.self::TABLE.' as A -JOIN '.self::TABLE.' AS B ON A.fs_name = B.fs_name AND A.fs_dir = B.fs_dir AND A.fs_active = '. - self::_pdo_boolean(true).' AND B.fs_active = '.self::_pdo_boolean(false).' +FROM ' . self::TABLE . ' as A +JOIN ' . self::TABLE . ' AS B ON A.fs_name = B.fs_name AND A.fs_dir = B.fs_dir AND A.fs_active = ' . + self::_pdo_boolean(true) . ' AND B.fs_active = ' . self::_pdo_boolean(true) . ' WHERE A.fs_id=? GROUP BY A.fs_id'; if (self::LOG_LEVEL > 2)