mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
fix(share): Send empty expireDate when not expireDate set
When creating a new share, if the user unchecks "Set expiry date" no `expireDate` is sent to the server. However, the server then assumes the default configured, hence better to send an empty value. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
parent
4b7b9c3d5d
commit
d2b0848a29
1 changed files with 2 additions and 4 deletions
|
|
@ -868,9 +868,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
|
||||
|
|
@ -912,9 +910,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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue