summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-09 23:58:24 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-09 23:58:24 +0200
commitfa096217b17fa928a99509dff6d83dacd93978e5 (patch)
tree3696bdf0963b1f2cf78fe816b0557f121e6a1c5b /core/ajax
parent01e1157a548a34a2ea58ba91dc2540301c8f8896 (diff)
parente6b093bfb9bdf609a1a5743c8f80915dbd53ae35 (diff)
downloadnextcloud-server-fa096217b17fa928a99509dff6d83dacd93978e5.tar.gz
nextcloud-server-fa096217b17fa928a99509dff6d83dacd93978e5.zip
Merge pull request #9512 from libasys/patch-2
Fix use Sharing Api with calendar
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index c6da79a8a42..9f758b4e44e 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -35,7 +35,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
if ($shareType === OCP\Share::SHARE_TYPE_LINK && $shareWith == '') {
$shareWith = null;
}
-
+ $itemSourceName=(isset($_POST['itemSourceName'])) ? $_POST['itemSourceName']:'';
+
$token = OCP\Share::shareItem(
$_POST['itemType'],
$_POST['itemSource'],