mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +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>
|
||||
@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" })
|
||||
</fieldset>
|
||||
|
||||
|
@@ -63,8 +63,10 @@
|
||||
<td>
|
||||
@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("Delete").ToString(), "Delete", new { id = entry.QueryId }, new { itemprop = "RemoveUrl UnsafeUrl" }) |
|
||||
@Html.ActionLink(T("Preview").ToString(), "Preview", new { id = entry.QueryId })
|
||||
@Html.ActionLink(T("Delete").ToString(), "Delete", new { id = entry.QueryId }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
@if (entry.Query.FilterGroups.SelectMany(x => x.Filters).Any()) {
|
||||
<text>| </text> @Html.ActionLink(T("Preview").ToString(), "Preview", new { id = entry.QueryId })
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
index++;
|
||||
|
Reference in New Issue
Block a user