mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-16 21:04:17 +08:00
Merge pull request #6520 from infofromca/fieldduplicated
[Fixes #6497] 1.10 Field names duplicated in dropdown list,
This commit is contained in:
commit
2b12a43385
@ -273,7 +273,7 @@ namespace Orchard.ContentTypes.Services {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user