Merge pull request #1394 from nextcloud/fix-share-notification-10
Fix MissingMandatoryParametersException for share notifications
This commit is contained in:
commit
43bff15359
|
@ -123,7 +123,7 @@ class MailNotifications {
|
|||
|
||||
$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');
|
||||
|
|
|
@ -241,10 +241,8 @@ class MailNotificationsTest extends \Test\TestCase {
|
|||
$this->urlGenerator->expects($this->once())
|
||||
->method('linkToRouteAbsolute')
|
||||
->with(
|
||||
$this->equalTo('files.viewcontroller.showFile'),
|
||||
$this->equalTo([
|
||||
'fileId' => 123,
|
||||
])
|
||||
'files.viewcontroller.showFile',
|
||||
['fileid' => 123]
|
||||
);
|
||||
|
||||
$recipientList = [$recipient];
|
||||
|
|
Loading…
Reference in New Issue