Skip to content

Commit ae35968

Browse files
authored
Merge pull request #60510 from nextcloud/backport/60378/stable32
[stable32] Fix error when creating mail shares if custom tokens are enabled
2 parents dffb132 + 6521eba commit ae35968

10 files changed

Lines changed: 10 additions & 7 deletions

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,9 @@ export default {
10491049
10501050
// ugly hack to make code work - we need the id to be set but at the same time we need to keep values we want to update
10511051
this.share._share.id = share.id
1052+
// Similarly the token is always set by the backend when the
1053+
// share is created.
1054+
this.share._share.token = share.token
10521055
await this.queueUpdate(...permissionsAndAttributes)
10531056
// Also a ugly hack to update the updated permissions
10541057
for (const prop of permissionsAndAttributes) {

dist/539-539.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/539-539.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/539-539.js.map.license

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
539-539.js.license

dist/9108-9108.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/9108-9108.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/9108-9108.js.map.license

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)