|
@@ -314,7 +314,7 @@ public class CodePopupEditorControl : DynamicEditorControl<Guid, CodePopupEditor
|
|
|
private string GetCodeColumn(Type type)
|
|
|
{
|
|
|
var prop = DatabaseSchema.Properties(type)
|
|
|
- .Where(x => x.Editor is BaseCodeEditor && !x.HasParentEntityLink())
|
|
|
+ .Where(x => x.Editor is UniqueCodeEditor && !x.HasParentEntityLink())
|
|
|
.FirstOrDefault() ?? throw new Exception($"No code property for {type.EntityName()}");
|
|
|
return prop.Name;
|
|
|
}
|