From 342b881af4246b76d2286b68b3616727bdbdf7b6 Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Wed, 23 Oct 2019 15:25:56 +0200 Subject: [PATCH] Repair motion filter for proxies The View Model Proxies are currently breaking all filter operations. This reparis the motion filters --- client/src/app/site/motions/models/view-motion.ts | 15 +++++++++++++++ .../services/motion-filter-list.service.ts | 9 +++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/client/src/app/site/motions/models/view-motion.ts b/client/src/app/site/motions/models/view-motion.ts index 5edf47c06..9a96be103 100644 --- a/client/src/app/site/motions/models/view-motion.ts +++ b/client/src/app/site/motions/models/view-motion.ts @@ -11,6 +11,7 @@ import { Searchable } from 'app/site/base/searchable'; import { ViewMediafile } from 'app/site/mediafiles/models/view-mediafile'; import { ViewTag } from 'app/site/tags/models/view-tag'; import { ViewUser } from 'app/site/users/models/view-user'; +import { AmendmentType } from '../motions.constants'; import { ViewCategory } from './view-category'; import { ViewMotionBlock } from './view-motion-block'; import { ViewMotionChangeRecommendation } from './view-motion-change-recommendation'; @@ -161,6 +162,20 @@ export class ViewMotion extends BaseViewModelWithAgendaItemAndListOfSpeakers { * getFilterOptions (as the workflows available may change) */ public stateFilterOptions: OsFilter = { - property: 'state', + property: 'state_id', label: 'State', options: [] }; public categoryFilterOptions: OsFilter = { - property: 'category', + property: 'category_id', + label: 'Category', options: [] }; @@ -78,13 +79,13 @@ export class MotionFilterListService extends BaseFilterListService { }; public recommendationFilterOptions: OsFilter = { - property: 'recommendation', + property: 'recommendation_id', label: 'Recommendation', options: [] }; public tagFilterOptions: OsFilter = { - property: 'tags', + property: 'tags_id', label: 'Tags', options: [] };