From da94a4f947f905e9fb4a01a82766ea6c7304cca7 Mon Sep 17 00:00:00 2001 From: GabrielMeyer Date: Wed, 6 Feb 2019 12:08:55 +0100 Subject: [PATCH] Fixes the initial loading of motions and their states Fixes #4262 - If the workflow is changed, then the state of the motion will be updated, too --- client/src/app/site/motions/models/view-motion.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/app/site/motions/models/view-motion.ts b/client/src/app/site/motions/models/view-motion.ts index 8fe2411ce..bf424dc52 100644 --- a/client/src/app/site/motions/models/view-motion.ts +++ b/client/src/app/site/motions/models/view-motion.ts @@ -405,6 +405,7 @@ export class ViewMotion extends BaseProjectableModel { public updateWorkflow(workflow: Workflow): void { if (this.motion && workflow.id === this.motion.workflow_id) { this._workflow = workflow; + this._state = workflow.getStateById(this.state_id); } }