Skip to content

Commit

Permalink
Merge pull request #22 from jbrinkman/ValidationGroup
Browse files Browse the repository at this point in the history
Fix #22 - Missing ValidationGroup
  • Loading branch information
skamphuis authored Jan 8, 2019
2 parents a5baf7f + 3f5ee79 commit 8e8eb36
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ucSubmitNews.ascx.vb
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down Expand Up @@ -1503,6 +1514,7 @@ Namespace Ventrian.NewsArticles
BindCategories()
SetVisibility()
BindArticle()
SetValidationGroup()

If (ArticleSettings.ContentSharingPortals = "" Or _articleID <> Null.NullInteger) Then
phMirror.Visible = False
Expand Down

0 comments on commit 8e8eb36

Please sign in to comment.