fix(xo-web/backup-ng): smart settings not saved when editing backup (#3886)

Fixes #3885
This commit is contained in:
badrAZ 2019-01-21 15:10:02 +01:00 committed by Pierre Donias
parent f663dbe7a7
commit 27835bfbd0
2 changed files with 8 additions and 3 deletions

View File

@ -13,6 +13,7 @@
- [Home] Fix two tabs opened by middle click in Firefox [#3450](https://github.com/vatesfr/xen-orchestra/issues/3450) (PR [#3825](https://github.com/vatesfr/xen-orchestra/pull/3825))
- [XOA] Enable downgrade for ending trial (PR [#3867](https://github.com/vatesfr/xen-orchestra/pull/3867))
- [OVA import] allow import of big files [#3468](https://github.com/vatesfr/xen-orchestra/issues/3468) (PR [#3504](https://github.com/vatesfr/xen-orchestra/pull/3504))
- [Backup NG] Smart settings not saved when editing a backup job [#3885](https://github.com/vatesfr/xen-orchestra/issues/3885) (PR [#3886](https://github.com/vatesfr/xen-orchestra/pull/3886))
### Released packages

View File

@ -544,9 +544,13 @@ export default decorate([
inputTimeoutId: generateId,
vmsPattern: ({ _vmsPattern }, { job }) =>
defined(_vmsPattern, () => job.vms, {
type: 'VM',
}),
defined(
_vmsPattern,
() => (job.vms.id !== undefined ? undefined : job.vms),
{
type: 'VM',
}
),
needUpdateParams: (state, { job, schedules }) =>
job !== undefined && schedules !== undefined && !state.paramsUpdated,
isJobInvalid: state =>