Skip to content

Commit 1277dca

Browse files
authored
Merge pull request #60378 from nextcloud/fix-error-when-creating-mail-shares-if-custom-tokens-are-enabled
Fix error when creating mail shares if custom tokens are enabled
2 parents 35484a9 + de14574 commit 1277dca

10 files changed

Lines changed: 11 additions & 8 deletions

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,9 @@ export default {
11311131
11321132
// 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
11331133
this.share._share.id = share.id
1134+
// Similarly the token is always set by the backend when the
1135+
// share is created.
1136+
this.share._share.token = share.token
11341137
await this.queueUpdate(...permissionsAndAttributes)
11351138
// Also a ugly hack to update the updated permissions
11361139
for (const prop of permissionsAndAttributes) {

build/eslint-baseline-legacy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"apps/files_sharing/src/views/SharingDetailsTab.vue": {
1818
"vue/no-mutating-props": {
19-
"count": 23
19+
"count": 24
2020
}
2121
},
2222
"apps/files_sharing/src/views/SharingLinkList.vue": {
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/3577-3577.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/3577-3577.js.map.license

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

dist/5638-5638.js.map

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

dist/5638-5638.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)