Merge pull request #5928 from FinnStutzenstein/orderAssignmentOptions

order assignment options by weight
This commit is contained in:
Emanuel Schütze 2021-03-01 16:25:14 +01:00 committed by GitHub
commit d73b2142b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,8 @@ const AssignmentPollRelations: RelationDefinition[] = [
type: 'O2M',
ownIdKey: 'options_id',
ownKey: 'options',
foreignViewModel: ViewAssignmentOption
foreignViewModel: ViewAssignmentOption,
order: 'weight'
},
{
type: 'M2O',