diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2024-02-19 16:25:53 +0100 |
---|---|---|
committer | fenn-cs <fenn25.fn@gmail.com> | 2024-02-20 11:10:23 +0100 |
commit | 82cdc1080f0a41b06e91805255802644c4728632 (patch) | |
tree | f616436f434ca17f3ba341acc1f38b2b2f6fbe25 /apps | |
parent | 2dfc389ce3a1131a5dba40224ea81431951b2284 (diff) | |
download | nextcloud-server-82cdc1080f0a41b06e91805255802644c4728632.tar.gz nextcloud-server-82cdc1080f0a41b06e91805255802644c4728632.zip |
Fix undefined share object during expirationDate update
In 04e87337211351127cd02a0404936de8cb1b0837 a regression was introduced.
`this` means nothing inside arrow functions, hence this.share was referring to
an undefined object and so all attempted updates for expiration dates would fail.
Resolves : https://github.com/nextcloud/server/issues/43256
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/mixins/SharesMixin.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js index b76b72cebe9..5f973bf63cf 100644 --- a/apps/files_sharing/src/mixins/SharesMixin.js +++ b/apps/files_sharing/src/mixins/SharesMixin.js @@ -221,7 +221,7 @@ export default { * * @param {Date} date */ - onExpirationChange: debounce((date) => { + onExpirationChange: debounce(function(date) { this.share.expireDate = this.formatDateToString(new Date(date)) }, 500), /** |