Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-07-20 17:42:19 +0300
committerVincent Petry <vincent@nextcloud.com>2021-07-27 13:20:03 +0300
commite67e90afce36edb18cebbc5f5799e427b891e114 (patch)
treeda36576051a89553df234166d8c7a31053faac20 /apps/files_sharing/lib
parent3deffc31615fa118565084ff2901affaf7d0a403 (diff)
Fix remote group share decline+accept code path
When declining a remote group share through the dialog that appears when notifications are off, the mount point is now correctly saved when re-accepting. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/External/Manager.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php
index fdc02f104af..b74198c8793 100644
--- a/apps/files_sharing/lib/External/Manager.php
+++ b/apps/files_sharing/lib/External/Manager.php
@@ -334,7 +334,13 @@ class Manager {
if ($subshare !== null) {
try {
- $this->updateAccepted((int)$subshare['id'], true);
+ $acceptShare = $this->connection->prepare('
+ UPDATE `*PREFIX*share_external`
+ SET `accepted` = ?,
+ `mountpoint` = ?,
+ `mountpoint_hash` = ?
+ WHERE `id` = ? AND `user` = ?');
+ $acceptShare->execute([1, $mountPoint, $hash, $subshare['id'], $this->uid]);
$result = true;
} catch (Exception $e) {
$this->logger->logException($e);