Skip to content

Commit

Permalink
Merge branch 'dev' into CSCEXAM-1214
Browse files Browse the repository at this point in the history
  • Loading branch information
lupari authored Dec 13, 2023
2 parents 008574f + 01a8fd4 commit 70fa7ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/QuestionController.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public Result getQuestions(
}
PathProperties pp = PathProperties.parse(
"*, modifier(firstName, lastName), questionOwners(id, firstName, lastName, userIdentifier, email), " +
"attachment(id, fileName), options(defaultScore, correctOption, claimChoiceType), tags(id, name), examSectionQuestions(examSection(exam(state, examActiveEndDate, course(code)))))"
"attachment(id, fileName), options(defaultScore, correctOption, claimChoiceType), tags(id, name, creator(id)), examSectionQuestions(examSection(exam(state, examActiveEndDate, course(code)))))"
);
Query<Question> query = DB.find(Question.class);
pp.apply(query);
Expand Down
6 changes: 4 additions & 2 deletions ui/src/app/question/tags/tag-picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export class TagPickerComponent implements OnInit {
newTag: Tag = { name: '', questions: [] };
ownTags: Tag[] = [];


constructor(private http: HttpClient, private Session: SessionService) {}

ngOnInit() {
Expand Down Expand Up @@ -122,7 +121,10 @@ export class TagPickerComponent implements OnInit {
nameFormat = (tag: Tag) => tag.name;

addTag = () => {
if (this.newTag) this.question.tags.push(this.newTag);
if (this.newTag) {
this.question.tags.push(this.newTag);
this.ownTags.push(this.newTag);
}
this.newTag = { name: '', questions: [] };
this.tagName = '';
};
Expand Down

0 comments on commit 70fa7ba

Please sign in to comment.