Browse Source

Merge pull request #44916 from nextcloud/followup/44910/share-date-time

fix(sharing): Don't change the type of the controller argument
feat/localized-ownership-transfer-target
Joas Schilling 1 week ago
parent
commit
2223e0959f
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      apps/files_sharing/lib/Controller/ShareAPIController.php

+ 2
- 2
apps/files_sharing/lib/Controller/ShareAPIController.php View File

@@ -648,8 +648,8 @@ class ShareAPIController extends OCSController {
//Expire date
if ($expireDate !== '') {
try {
$expireDate = $this->parseDate($expireDate);
$share->setExpirationDate($expireDate);
$expireDateTime = $this->parseDate($expireDate);
$share->setExpirationDate($expireDateTime);
} catch (\Exception $e) {
throw new OCSNotFoundException($this->l->t('Invalid date, date format must be YYYY-MM-DD'));
}

Loading…
Cancel
Save