diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 9ae7789f2..268795be1 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -17,6 +17,7 @@ > Users must be able to say: “I had this issue, happy to know it's fixed” - [OVA/import] Fix OVA CLI import tool (PR [#5432](https://github.com/vatesfr/xen-orchestra/pull/5432)) +- [Jobs] Fix `Cannot read property id of undefined` error when running a job without a schedule [#5425] https://github.com/vatesfr/xen-orchestra/issues/5425 (PR [#5426](https://github.com/vatesfr/xen-orchestra/pull/5426)) ### Packages to release diff --git a/packages/xo-server/src/xo-mixins/jobs/index.js b/packages/xo-server/src/xo-mixins/jobs/index.js index e9c061420..07b694c4d 100644 --- a/packages/xo-server/src/xo-mixins/jobs/index.js +++ b/packages/xo-server/src/xo-mixins/jobs/index.js @@ -273,7 +273,7 @@ export default class Jobs { method: 'backupNg.runJob', params: { id: job.id, - schedule: schedule.id, + schedule: schedule?.id, settings: job.settings, vms: job.vms, },