From 3f5ee793333f216688ef9b29c6d826d5e0fef6af Mon Sep 17 00:00:00 2001 From: Joe Brinkman Date: Tue, 4 Dec 2018 14:28:41 -0600 Subject: [PATCH] Fix #22 - Missing ValidationGroup Added a validation group to prevent the form from conflicting with other forms on the page. --- ucSubmitNews.ascx.vb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ucSubmitNews.ascx.vb b/ucSubmitNews.ascx.vb index f63059b..49ee536 100755 --- a/ucSubmitNews.ascx.vb +++ b/ucSubmitNews.ascx.vb @@ -1445,6 +1445,17 @@ Namespace Ventrian.NewsArticles End Sub + Private Sub SetValidationGroup() + Dim vgId As String = Guid.NewGuid().ToString() + + valMirrorArticle.ValidationGroup = vgId + valTitle.ValidationGroup = vgId + valBody.ValidationGroup = vgId + valCategory.ValidationGroup = vgId + valPublishDateRequired.ValidationGroup = vgId + cmdSaveArticle.ValidationGroup = vgId + End Sub + #End Region #Region " Event Handlers " @@ -1503,6 +1514,7 @@ Namespace Ventrian.NewsArticles BindCategories() SetVisibility() BindArticle() + SetValidationGroup() If (ArticleSettings.ContentSharingPortals = "" Or _articleID <> Null.NullInteger) Then phMirror.Visible = False