diff --git a/src/app/components/creator/content-choice-creator/content-choice-creator.component.ts b/src/app/components/creator/content-choice-creator/content-choice-creator.component.ts index 6edd457f037bb060d9c990c4326865ebdd81642e..054fedc2fc5aaf5a30ad6cc1f2eb8f361c89286a 100644 --- a/src/app/components/creator/content-choice-creator/content-choice-creator.component.ts +++ b/src/app/components/creator/content-choice-creator/content-choice-creator.component.ts @@ -284,6 +284,12 @@ export class ContentChoiceCreatorComponent implements OnInit { this.changesAllowed = true; return; } + let contentGroup: string; + if (this.contentCol === 'Default') { + contentGroup = ''; + } else { + contentGroup = this.contentCol; + } this.contentService.addContent(new ContentChoice( '', '', @@ -291,7 +297,7 @@ export class ContentChoiceCreatorComponent implements OnInit { this.contentSub, this.contentBod, 1, - [this.contentCol], + [contentGroup], this.content.options, this.content.correctOptionIndexes, this.content.multiple, diff --git a/src/app/components/creator/content-likert-creator/content-likert-creator.component.ts b/src/app/components/creator/content-likert-creator/content-likert-creator.component.ts index 6b2ecf1c3b91e1f478fa757d2667b2b58d6895ec..61b4bdfbb5b54904983b19b14be5d0b01bd21246 100644 --- a/src/app/components/creator/content-likert-creator/content-likert-creator.component.ts +++ b/src/app/components/creator/content-likert-creator/content-likert-creator.component.ts @@ -109,6 +109,12 @@ export class ContentLikertCreatorComponent implements OnInit { }); return; } + let contentGroup: string; + if (this.contentCol === 'Default') { + contentGroup = ''; + } else { + contentGroup = this.contentCol; + } this.contentService.addContent(new ContentChoice( '', '', @@ -116,7 +122,7 @@ export class ContentLikertCreatorComponent implements OnInit { this.contentSub, this.contentBod, 1, - [this.contentCol], + [contentGroup], this.content.options, this.content.correctOptionIndexes, this.content.multiple, diff --git a/src/app/components/creator/content-text-creator/content-text-creator.component.ts b/src/app/components/creator/content-text-creator/content-text-creator.component.ts index 37e18da98a7932f0a6835b18eb378fc3b4c9f3b8..386184a54e9ff191b3528a19d4ffeb6b62f0d10f 100644 --- a/src/app/components/creator/content-text-creator/content-text-creator.component.ts +++ b/src/app/components/creator/content-text-creator/content-text-creator.component.ts @@ -51,6 +51,12 @@ export class ContentTextCreatorComponent implements OnInit { } submitContent() { + let contentGroup: string; + if (this.contentCol === 'Default') { + contentGroup = ''; + } else { + contentGroup = this.contentCol; + } this.contentService.addContent(new ContentText( '1', '1', @@ -58,7 +64,7 @@ export class ContentTextCreatorComponent implements OnInit { this.contentSub, this.contentBod, 1, - [this.contentCol], + [contentGroup], )).subscribe(); if (this.contentSub === '' || this.contentBod === '') { this.translationService.get('content.no-empty').subscribe(message => { diff --git a/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts b/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts index cbf5bca7b8316adc29f4f2fdf5bb69e2133bb7b5..404d3ecfd97ed404457d145ee25a78c5092872c4 100644 --- a/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts +++ b/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts @@ -109,6 +109,12 @@ export class ContentYesNoCreatorComponent implements OnInit { } else { this.content.correctOptionIndexes = [1]; } + let contentGroup: string; + if (this.contentCol === 'Default') { + contentGroup = ''; + } else { + contentGroup = this.contentCol; + } this.contentService.addContent(new ContentChoice( '', '', @@ -116,7 +122,7 @@ export class ContentYesNoCreatorComponent implements OnInit { this.contentSub, this.contentBod, 1, - [this.contentCol], + [contentGroup], this.content.options, this.content.correctOptionIndexes, this.content.multiple,