mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
- Fixing 16258: Save Comment throws SQLDateTime overflow or The view 'Create' was not found
--HG-- branch : dev
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Orchard.Comments.Models {
|
||||
public virtual string UserName { get; set; }
|
||||
public virtual string Email { get; set; }
|
||||
public virtual CommentStatus Status { get; set; }
|
||||
public virtual DateTime CommentDateUtc { get; set; }
|
||||
public virtual DateTime? CommentDateUtc { get; set; }
|
||||
public virtual string CommentText { get; set; }
|
||||
public virtual int CommentedOn { get; set; }
|
||||
public virtual int CommentedOnContainer { get; set; }
|
||||
|
@@ -83,7 +83,7 @@
|
||||
<%=Html.Encode(commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText) %><%=_Encoded(" ...") %>
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%=commentEntry.Comment.CommentDateUtc.ToLocalTime() %></td>
|
||||
<td><%=commentEntry.Comment.CommentDateUtc.GetValueOrDefault().ToLocalTime()) %></td>
|
||||
<td>
|
||||
<ul class="actions">
|
||||
<li class="construct">
|
||||
|
@@ -67,7 +67,7 @@
|
||||
<%=Html.Encode(commentEntry.Comment.CommentText.Length > 23 ? commentEntry.Comment.CommentText.Substring(0, 24) : commentEntry.Comment.CommentText) %><%=_Encoded(" ...") %>
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%=commentEntry.Comment.CommentDateUtc.ToLocalTime() %></td>
|
||||
<td><%=commentEntry.Comment.CommentDateUtc.GetValueOrDefault().ToLocalTime()) %></td>
|
||||
<td><%=Html.ActionLink(commentEntry.CommentedOn, "Details", new { id = commentEntry.Comment.CommentedOn }) %></td>
|
||||
<td>
|
||||
<ul class="actions">
|
||||
|
@@ -6,7 +6,7 @@ foreach (var comment in Model) { %>
|
||||
<div class="comment">
|
||||
<span class="who"><%=Html.LinkOrDefault(Html.Encode(comment.Record.UserName), Html.Encode(comment.Record.SiteName), new { rel = "nofollow" })%></span>
|
||||
<%-- todo: (heskew) need comment permalink --%>
|
||||
<span>said <%=Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc), "#")%></span>
|
||||
<span>said <%=Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc.GetValueOrDefault()), "#")%></span>
|
||||
</div>
|
||||
<div class="text">
|
||||
<%-- todo: (heskew) comment text needs processing depending on comment markup style --%>
|
||||
|
@@ -9,7 +9,7 @@ foreach (var comment in Model) { %>
|
||||
</div>
|
||||
|
||||
<div class="commentauthor">
|
||||
<span class="who"><%=Html.LinkOrDefault(Html.Encode(comment.Record.UserName), Html.Encode(comment.Record.SiteName), new { rel = "nofollow" })%></span> <span>said <%=Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc), "#")%></span>
|
||||
<span class="who"><%=Html.LinkOrDefault(Html.Encode(comment.Record.UserName), Html.Encode(comment.Record.SiteName), new { rel = "nofollow" })%></span> <span>said <%=Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc.GetValueOrDefault()), "#")%></span>
|
||||
</div>
|
||||
|
||||
</li><%
|
||||
|
Reference in New Issue
Block a user