mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #44491 from nextcloud/backport/44291/stable27
[stable27] enh: Send empty expireDate when not expireDate set
This commit is contained in:
commit
b7988cb20a
3 changed files with 5 additions and 7 deletions
|
|
@ -796,9 +796,7 @@ export default {
|
|||
fileInfo: this.fileInfo,
|
||||
}
|
||||
|
||||
if (this.hasExpirationDate) {
|
||||
incomingShare.expireDate = this.share.expireDate
|
||||
}
|
||||
incomingShare.expireDate = this.hasExpirationDate ? this.share.expireDate : ''
|
||||
|
||||
if (this.isPasswordProtected) {
|
||||
incomingShare.password = this.share.password
|
||||
|
|
@ -829,9 +827,9 @@ export default {
|
|||
shareWith: share.shareWith,
|
||||
permissions: share.permissions,
|
||||
attributes: JSON.stringify(fileInfo.shareAttributes),
|
||||
expireDate: share.expireDate,
|
||||
...(share.note ? { note: share.note } : {}),
|
||||
...(share.password ? { password: share.password } : {}),
|
||||
...(share.expireDate ? { expireDate: share.expireDate } : {}),
|
||||
})
|
||||
return resultingShare
|
||||
} catch (error) {
|
||||
|
|
|
|||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue