mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge pull request #5292 from Hazzamanic/1.9.x
fixing placementeditor try/catch block
This commit is contained in:
@@ -24,11 +24,13 @@
|
|||||||
|
|
||||||
<li data-shape-type="@placement.ShapeType" data-shape-differentiator="@placement.Differentiator" data-shape-zone="Content" data-shape-position="@placement.Position">
|
<li data-shape-type="@placement.ShapeType" data-shape-differentiator="@placement.Differentiator" data-shape-zone="Content" data-shape-position="@placement.Position">
|
||||||
<div class="shape-type"><h3>@placement.ShapeType @placement.Differentiator</h3></div>
|
<div class="shape-type"><h3>@placement.ShapeType @placement.Differentiator</h3></div>
|
||||||
@try {
|
<div class="shape-editor">
|
||||||
<div class="shape-editor">@Display(Model.AllPlacements[i].Shape)</div>
|
@try {
|
||||||
}
|
@Display(Model.AllPlacements[i].Shape)
|
||||||
catch {
|
}
|
||||||
}
|
catch {
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
@* @shape.Position @(Model.PlacementSettings.Any(x => x.Equals(shape)))*@
|
@* @shape.Position @(Model.PlacementSettings.Any(x => x.Equals(shape)))*@
|
||||||
@Html.HiddenFor(m => m.AllPlacements[i].PlacementSettings.ShapeType, new { @class = "type" })
|
@Html.HiddenFor(m => m.AllPlacements[i].PlacementSettings.ShapeType, new { @class = "type" })
|
||||||
|
Reference in New Issue
Block a user