Skip to content

Commit a32f83a

Browse files
author
mac
committed
Fixed issue displaying approved comments in the front end
1 parent 1717388 commit a32f83a

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

WebApplication/Controls/Lists/CommentsList.ascx.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@ public enum Mode
2020
{
2121
None,
2222
ApproveReject
23-
}
23+
}
2424

25-
/*protected void Page_Init(object sender, EventArgs e)
25+
protected void Page_Init(object sender, EventArgs e)
2626
{
2727
if (!BasePage.IsInAdminSection)
2828
{
29-
Comments = BasePage.CurrentMediaDetail.Media.Comments.OrderByDescending(i => i.DateCreated).Where(i => i.Status == StatusEnum.Approved.ToString());
29+
if(media == null && BasePage.CurrentMedia != null)
30+
{
31+
SetComments(this.statusEnum, this.mode, BasePage.CurrentMedia);
32+
}
3033
}
31-
}*/
34+
}
3235

3336
protected void Approve_OnClick(object sender, EventArgs e)
3437
{
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)