mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Using ZoneName property directly to avoid bypassing interceptor
--HG-- branch : theming
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@{
|
||||
var id = Model.Id;
|
||||
if (id == null) {
|
||||
if (id == null && Model.ZoneName != null) {
|
||||
id = (Model.Parent.Id == null ? "" : Model.Parent.Id + "-") + "Zone-" + Model.ZoneName;
|
||||
}
|
||||
}
|
||||
|
@@ -94,7 +94,8 @@ namespace Orchard.UI.Zones {
|
||||
dynamic parent = _parent;
|
||||
|
||||
dynamic zone = _shapeFactory.Create("Zone", Arguments.Empty());
|
||||
zone.Parent(_parent).ZoneName(_potentialZoneName);
|
||||
zone.Parent = _parent;
|
||||
zone.ZoneName = _potentialZoneName;
|
||||
parent[_potentialZoneName] = zone;
|
||||
|
||||
if (argsCount == 1)
|
||||
|
Reference in New Issue
Block a user