From 0a8274e6e28c7399d1b1acbd9eacc8e9e4479fef Mon Sep 17 00:00:00 2001 From: Finn Stutzenstein Date: Mon, 1 Mar 2021 14:40:06 +0100 Subject: [PATCH] order assignment options by weight --- .../assignments/assignment-poll-repository.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/app/core/repositories/assignments/assignment-poll-repository.service.ts b/client/src/app/core/repositories/assignments/assignment-poll-repository.service.ts index d570d53bb..a85328034 100644 --- a/client/src/app/core/repositories/assignments/assignment-poll-repository.service.ts +++ b/client/src/app/core/repositories/assignments/assignment-poll-repository.service.ts @@ -29,7 +29,8 @@ const AssignmentPollRelations: RelationDefinition[] = [ type: 'O2M', ownIdKey: 'options_id', ownKey: 'options', - foreignViewModel: ViewAssignmentOption + foreignViewModel: ViewAssignmentOption, + order: 'weight' }, { type: 'M2O',