Skip to content

Commit

Permalink
Merge pull request #1394 from nextcloud/fix-share-notification-10
Browse files Browse the repository at this point in the history
Fix MissingMandatoryParametersException for share notifications
  • Loading branch information
rullzer authored Sep 13, 2016
2 parents 14ea159 + 107b418 commit 43bff15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/private/Share/MailNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function sendInternalShareMail($recipientList, $itemSource, $itemType) {

$link = $this->urlGenerator->linkToRouteAbsolute(
'files.viewcontroller.showFile',
['fileId' => $items[0]['item_source']]
['fileid' => $items[0]['item_source']]
);

list($htmlBody, $textBody) = $this->createMailBody($filename, $link, $expiration, 'internal');
Expand Down
6 changes: 2 additions & 4 deletions tests/lib/Share/MailNotificationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@ public function testSendInternalShareMail() {
$this->urlGenerator->expects($this->once())
->method('linkToRouteAbsolute')
->with(
$this->equalTo('files.viewcontroller.showFile'),
$this->equalTo([
'fileId' => 123,
])
'files.viewcontroller.showFile',
['fileid' => 123]
);

$recipientList = [$recipient];
Expand Down

0 comments on commit 43bff15

Please sign in to comment.