add note to share object when reading it from the db

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2018-07-12 16:09:05 +02:00 committed by John Molakvoæ (skjnldsv)
parent c116d116fa
commit 73b88deeb8
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
2 changed files with 2 additions and 0 deletions

View File

@ -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();

View File

@ -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();