Browse Source
Fixed backward FieldBuilder methods. (#662)
Co-authored-by: John Fredrickson <john.fredrickson@arinet.com>
pull/664/head
jrlost
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
backend/src/Squidex.Domain.Apps.Entities/Apps/Templates/Builders/FieldBuilder.cs
|
|
|
@ -64,16 +64,16 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates.Builders |
|
|
|
|
|
|
|
public FieldBuilder ShowInList() |
|
|
|
{ |
|
|
|
schema.FieldsInReferences ??= new FieldNames(); |
|
|
|
schema.FieldsInReferences.Add(field.Name); |
|
|
|
schema.FieldsInLists ??= new FieldNames(); |
|
|
|
schema.FieldsInLists.Add(field.Name); |
|
|
|
|
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|
public FieldBuilder ShowInReferences() |
|
|
|
{ |
|
|
|
schema.FieldsInLists ??= new FieldNames(); |
|
|
|
schema.FieldsInLists.Add(field.Name); |
|
|
|
schema.FieldsInReferences ??= new FieldNames(); |
|
|
|
schema.FieldsInReferences.Add(field.Name); |
|
|
|
|
|
|
|
return this; |
|
|
|
} |
|
|
|
|