From dac0a77e53b7f07da8d5aa31332beb8a45314a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 24 Jul 2019 14:18:30 +0200 Subject: [PATCH] Ensure the results get set into query --- .../components/wp-list/wp-states-initialization.service.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/app/components/wp-list/wp-states-initialization.service.ts b/frontend/src/app/components/wp-list/wp-states-initialization.service.ts index bed881d299..3877e9d92d 100644 --- a/frontend/src/app/components/wp-list/wp-states-initialization.service.ts +++ b/frontend/src/app/components/wp-list/wp-states-initialization.service.ts @@ -94,6 +94,12 @@ export class WorkPackageStatesInitializationService { this.states.schemas.get(schema.href as string).putValue(schema); }); } + + // Ensure we're setting the current results to the query + // This is due to 9.X still loading results from /api/v3/work_packages + // for a previously loaded query. + query.results = results; + this.querySpace.query.putValue(query); this.querySpace.rows.putValue(results.elements);