mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 21:32:14 +08:00
Selecting the layer "Default" on the widgets start screen
Fixes a specflow bug which expect "Default" to be the default selected layer. Appeared since layers are ordered alphabetically.
This commit is contained in:
@@ -69,7 +69,7 @@ namespace Orchard.Widgets.Controllers {
|
||||
}
|
||||
|
||||
LayerPart currentLayer = layerId == null
|
||||
? layers.FirstOrDefault()
|
||||
? layers.FirstOrDefault(x => x.Name == "Default")
|
||||
: layers.FirstOrDefault(layer => layer.Id == layerId);
|
||||
|
||||
if (currentLayer == null && layerId != null) { // Incorrect layer id passed
|
||||
|
||||
Reference in New Issue
Block a user