From faef3ac97ef7d975d12d2efcbec379d96cf478a3 Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Fri, 12 Oct 2018 12:32:19 +0200 Subject: [PATCH] Hotfix for MotionStatute --- client/src/app/shared/models/motions/statute-paragraph.ts | 2 -- client/src/app/site/motions/motions.config.ts | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/shared/models/motions/statute-paragraph.ts b/client/src/app/shared/models/motions/statute-paragraph.ts index 35f841e9c..7fbb814a9 100644 --- a/client/src/app/shared/models/motions/statute-paragraph.ts +++ b/client/src/app/shared/models/motions/statute-paragraph.ts @@ -18,5 +18,3 @@ export class StatuteParagraph extends BaseModel { return this.title; } } - -BaseModel.registerCollectionElement('motions/statute-paragraph', StatuteParagraph); diff --git a/client/src/app/site/motions/motions.config.ts b/client/src/app/site/motions/motions.config.ts index 58ede741e..68ce03514 100644 --- a/client/src/app/site/motions/motions.config.ts +++ b/client/src/app/site/motions/motions.config.ts @@ -5,6 +5,7 @@ import { Workflow } from '../../shared/models/motions/workflow'; import { MotionCommentSection } from '../../shared/models/motions/motion-comment-section'; import { MotionChangeReco } from '../../shared/models/motions/motion-change-reco'; import { MotionBlock } from '../../shared/models/motions/motion-block'; +import { StatuteParagraph } from '../../shared/models/motions/statute-paragraph'; export const MotionsAppConfig: AppConfig = { name: 'motions', @@ -14,7 +15,8 @@ export const MotionsAppConfig: AppConfig = { { collectionString: 'motions/workflow', model: Workflow }, { collectionString: 'motions/motion-comment-section', model: MotionCommentSection }, { collectionString: 'motions/motion-change-recommendation', model: MotionChangeReco }, - { collectionString: 'motions/motion-block', model: MotionBlock } + { collectionString: 'motions/motion-block', model: MotionBlock }, + { collectionString: 'motions/statute-paragraph', model: StatuteParagraph } ], mainMenuEntries: [ {