mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 01:57:55 +08:00
Fixes 2 little issues in dev around the TextField default values
This commit is contained in:
@@ -272,8 +272,8 @@ namespace Orchard.ContentTypes.Services {
|
|||||||
_contentDefinitionEventHandlers.ContentPartRemoved(new ContentPartRemovedContext {ContentPartDefinition = partDefinition});
|
_contentDefinitionEventHandlers.ContentPartRemoved(new ContentPartRemovedContext {ContentPartDefinition = partDefinition});
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<ContentFieldInfo> GetFields() {
|
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) {
|
public void AddFieldToPart(string fieldName, string fieldTypeName, string partName) {
|
||||||
|
Reference in New Issue
Block a user