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-21 11:43:31 +0100 |
commit | 7200241932117f54c31a9a8b7d1b15fd293ed241 (patch) | |
tree | bec11024769f49ba5795b5ad06619be73cfeb77b /apps | |
parent | 1442477d2dea14a353d6d6d85faa5d9483efe957 (diff) | |
download | nextcloud-server-7200241932117f54c31a9a8b7d1b15fd293ed241.tar.gz nextcloud-server-7200241932117f54c31a9a8b7d1b15fd293ed241.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), /** |