fix(xo-web/backup): fix reportWhen being reset to undefined (#7235)

See Zammad#17506

Preventing `reportWhen` value from becoming undefined (and resetting to the
default value _Failure_) when a mirror backup is edited without modifying this
field.
This commit is contained in:
b-Nollet 2023-12-19 17:08:19 +01:00 committed by GitHub
parent 439c721472
commit c40e71ed49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@
- [Host/Smart reboot] Automatically retries up to a minute when `HOST_STILL_BOOTING` [#7194](https://github.com/vatesfr/xen-orchestra/issues/7194) (PR [#7231](https://github.com/vatesfr/xen-orchestra/pull/7231))
- [Plugin/transport-slack] Compatibility with other services like Mattermost or Discord [#7130](https://github.com/vatesfr/xen-orchestra/issues/7130) (PR [#7220](https://github.com/vatesfr/xen-orchestra/pull/7220))
- [Host/Network] Fix error "PIF_IS_PHYSICAL" when trying to remove a PIF that had already been physically disconnected [#7193](https://github.com/vatesfr/xen-orchestra/issues/7193) (PR [#7221](https://github.com/vatesfr/xen-orchestra/pull/7221))
- [Mirror backup] Fix backup reports not being sent (PR [#7235](https://github.com/vatesfr/xen-orchestra/pull/7235))
### Packages to release

View File

@ -68,7 +68,7 @@ const normalize = state => {
schedules = mapValues(schedules, ({ id, ...schedule }) => schedule)
settings[''] = {
...advancedSettings,
reportWhen: reportWhen.value,
reportWhen: reportWhen.value ?? reportWhen,
reportRecipients: reportRecipients.length !== 0 ? reportRecipients : undefined,
}
return {