diff --git a/changelog/unreleased/bugfix-allow-removing-space-expiration-date b/changelog/unreleased/bugfix-allow-removing-space-expiration-date new file mode 100644 index 000000000..8be7b3b56 --- /dev/null +++ b/changelog/unreleased/bugfix-allow-removing-space-expiration-date @@ -0,0 +1,6 @@ +Bugfix: Allow removing expiration dates from space shares + +We've fixed a bug where removing expiration dates from space shares was not possible. + +https://github.com/owncloud/owncloud-sdk/pull/1204 +https://github.com/owncloud/web/pull/8320 diff --git a/src/shareManagement.js b/src/shareManagement.js index 86a6856e9..5affd30df 100644 --- a/src/shareManagement.js +++ b/src/shareManagement.js @@ -155,6 +155,10 @@ class Shares { if (optionalParams) { postData = { ...postData, ...this._getOptionalParams(optionalParams) } + + if (optionalParams.expireDate !== undefined) { + postData.expireDate = optionalParams.expireDate + } } return this.helpers._makeOCSrequest('POST', this.helpers.OCS_SERVICE_SHARE, 'shares', postData)