mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-02 20:42:45 +08:00
Fixes 2 little issues in dev around the TextField default values
This commit is contained in:
@@ -273,7 +273,7 @@ namespace Orchard.ContentTypes.Services {
|
||||
}
|
||||
|
||||
public IEnumerable<ContentFieldInfo> GetFields() {
|
||||
return _contentFieldDrivers.SelectMany(d => d.GetFieldInfo());
|
||||
return _contentFieldDrivers.SelectMany(d => d.GetFieldInfo()).GroupBy(x => x.FieldTypeName).Select(g => g.First());
|
||||
}
|
||||
|
||||
public void AddFieldToPart(string fieldName, string fieldTypeName, string partName) {
|
||||
|
||||
Reference in New Issue
Block a user