mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#18844: Fixing exception when previewing an empty query
Work Item: 18844 --HG-- branch : 1.x
This commit is contained in:
@@ -109,7 +109,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@Html.ActionLink(T("Preview").ToString(), "Preview", new { Model.Id }, new { @class = "button" })
|
@if(Model.FilterGroups.SelectMany(x => x.Filters).Any()) {
|
||||||
|
@Html.ActionLink(T("Preview").ToString(), "Preview", new { Model.Id }, new { @class = "button" });
|
||||||
|
}
|
||||||
@Html.ActionLink(T("Close").ToString(), "Index", new { }, new { @class = "button" })
|
@Html.ActionLink(T("Close").ToString(), "Index", new { }, new { @class = "button" })
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@@ -63,8 +63,10 @@
|
|||||||
<td>
|
<td>
|
||||||
@Html.ActionLink(T("Properties").ToString(), "Edit", new { Area = "Contents", id = entry.QueryId, returnurl = HttpContext.Current.Request.RawUrl }) |
|
@Html.ActionLink(T("Properties").ToString(), "Edit", new { Area = "Contents", id = entry.QueryId, returnurl = HttpContext.Current.Request.RawUrl }) |
|
||||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { id = entry.QueryId }) |
|
@Html.ActionLink(T("Edit").ToString(), "Edit", new { id = entry.QueryId }) |
|
||||||
@Html.ActionLink(T("Delete").ToString(), "Delete", new { id = entry.QueryId }, new { itemprop = "RemoveUrl UnsafeUrl" }) |
|
@Html.ActionLink(T("Delete").ToString(), "Delete", new { id = entry.QueryId }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||||
@Html.ActionLink(T("Preview").ToString(), "Preview", new { id = entry.QueryId })
|
@if (entry.Query.FilterGroups.SelectMany(x => x.Filters).Any()) {
|
||||||
|
<text>| </text> @Html.ActionLink(T("Preview").ToString(), "Preview", new { id = entry.QueryId })
|
||||||
|
}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
index++;
|
index++;
|
||||||
|
Reference in New Issue
Block a user