From dbaaae071b1b94d9bfa5d867a951052168e9a578 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 6 May 2015 15:44:19 +0200 Subject: [PATCH] Fix the share mail notification when the item is in a folder --- lib/private/share/mailnotifications.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php index 2e3f71f59909..09d21968dfeb 100644 --- a/lib/private/share/mailnotifications.php +++ b/lib/private/share/mailnotifications.php @@ -104,6 +104,11 @@ public function sendInternalShareMail($recipientList, $itemSource, $itemType) { $args = array( 'dir' => $filename, ); + } else if (strpos($filename, '/')) { + $args = array( + 'dir' => '/' . dirname($filename), + 'scrollto' => basename($filename), + ); } else { $args = array( 'dir' => '/',