From 98475f7aa02dfcc35856d5a32c031f7f69cf64d3 Mon Sep 17 00:00:00 2001 From: Hazza Date: Sat, 16 May 2015 16:34:20 +0100 Subject: [PATCH] fixing placementeditor try/catch block --- .../Views/Admin/EditPlacement.cshtml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/EditPlacement.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/EditPlacement.cshtml index da4a48ac0..9f6d8c104 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/EditPlacement.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/EditPlacement.cshtml @@ -24,11 +24,13 @@
  • @placement.ShapeType @placement.Differentiator

    - @try { -
    @Display(Model.AllPlacements[i].Shape)
    - } - catch { - } +
    + @try { + @Display(Model.AllPlacements[i].Shape) + } + catch { + } +
    @* @shape.Position @(Model.PlacementSettings.Any(x => x.Equals(shape)))*@ @Html.HiddenFor(m => m.AllPlacements[i].PlacementSettings.ShapeType, new { @class = "type" })