summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-07-12 16:09:05 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-21 15:02:18 +0200
commit73b88deeb8942e188a5e1e81f4bfca02412a0c5c (patch)
treea65abe508d1daa8bc83faf19f0e6c42c6d7f746e
parentc116d116facb45683514cbb2d175b66e3d3c5c59 (diff)
downloadnextcloud-server-73b88deeb8942e188a5e1e81f4bfca02412a0c5c.tar.gz
nextcloud-server-73b88deeb8942e188a5e1e81f4bfca02412a0c5c.zip
add note to share object when reading it from the db
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php1
-rw-r--r--lib/private/Share20/DefaultShareProvider.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index 0eceeca1cac..cdef06f5345 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -957,6 +957,7 @@ class ShareByMailProvider implements IShareProvider {
->setPermissions((int)$data['permissions'])
->setTarget($data['file_target'])
->setMailSend((bool)$data['mail_send'])
+ ->setNote($data['note'])
->setToken($data['token']);
$shareTime = new \DateTime();
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index 86eac45f88e..8ecd1e811ba 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -910,6 +910,7 @@ class DefaultShareProvider implements IShareProvider {
->setShareType((int)$data['share_type'])
->setPermissions((int)$data['permissions'])
->setTarget($data['file_target'])
+ ->setNote($data['note'])
->setMailSend((bool)$data['mail_send']);
$shareTime = new \DateTime();