Skip to content

Commit 17a40ec

Browse files
valadasbdukes
authored andcommitted
Fixed a viewstate managment issues with DnnTab webcontrol
Fixes #7187 issue with the Active Directory provider https://github.com/DNNCommunity/DNN.ActiveDirectory as well as other providers and potentially other usages of that control.
1 parent bcb5f46 commit 17a40ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • DNN Platform/Controls/DotNetNuke.WebControls/DotNetNuke/UI/WebControls

DNN Platform/Controls/DotNetNuke.WebControls/DotNetNuke/UI/WebControls/DNNTab.vb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ Namespace DotNetNuke.UI.WebControls
201201
End Sub
202202

203203
Protected Overrides Function SaveViewState() As Object
204-
Dim objArray As Object() = New Object() {MyBase.SaveViewState}
204+
Dim objArray As Object() = New Object(1) {}
205+
objArray(0) = MyBase.SaveViewState
205206
objArray(1) = If(Object.ReferenceEquals(Me.m_oDNNTabLabel, Nothing), Nothing, DirectCast(Me.Label, IStateManager).SaveViewState)
206207
Dim num2 As Integer = (objArray.Length - 1)
207208
Dim index As Integer = 0

0 commit comments

Comments
 (0)