mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge pull request #5659 from planetClaire/5658
Show Default layer by default in Widgets admin
This commit is contained in:
@@ -69,7 +69,7 @@ namespace Orchard.Widgets.Controllers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LayerPart currentLayer = layerId == null
|
LayerPart currentLayer = layerId == null
|
||||||
? layers.FirstOrDefault()
|
? layers.FirstOrDefault(layer => layer.Name == "Default") ?? layers.FirstOrDefault()
|
||||||
: layers.FirstOrDefault(layer => layer.Id == layerId);
|
: layers.FirstOrDefault(layer => layer.Id == layerId);
|
||||||
|
|
||||||
if (currentLayer == null && layerId != null) { // Incorrect layer id passed
|
if (currentLayer == null && layerId != null) { // Incorrect layer id passed
|
||||||
|
Reference in New Issue
Block a user