Skip to content

Commit

Permalink
Fix bug in getValuelist for campaign field
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Nov 4, 2019
1 parent 1af3292 commit a587add
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/core/util/valuelist-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export module ValuelistUtil {
: getValuelistFromProjectField(field.valuelistFromProjectField as string, projectDocument);

return field.allowOnlyValuesOfParent && parentResource
&& parentResource.type !== 'Place' // TODO Implement generic solution; check if field is defined in parent type
? getValuesOfParentField(valuelist, field.name, parentResource)
: valuelist;
}
Expand Down

0 comments on commit a587add

Please sign in to comment.