Skip to content

Commit 71cd68f

Browse files
Fixed Issue #4 regarding the sorting of owners
1 parent 1fa0a42 commit 71cd68f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Source/DnnDocuments/EditDocs.ascx.vb

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
'
2020

2121
Imports System.IO
22+
Imports System.Linq
2223
Imports System.Web
24+
Imports DotNetNuke.Entities.Users
2325

2426
Namespace DotNetNuke.Modules.Documents
2527

@@ -606,10 +608,9 @@ Namespace DotNetNuke.Modules.Documents
606608

607609
Private Sub PopulateOwnerList()
608610
' populate owner list
609-
''With New DotNetNuke.Entities.Users.UserController
610-
lstOwner.DataSource = DotNetNuke.Entities.Users.UserController.GetUsers(PortalId, False)
611+
lstOwner.DataSource = UserController.GetUsers(false, false, PortalId).Cast(Of UserInfo).OrderBy(Function(i As UserInfo) i.DisplayName)
611612

612-
lstOwner.DataTextField = "FullName"
613+
lstOwner.DataTextField = "DisplayName"
613614
lstOwner.DataValueField = "UserId"
614615

615616
lstOwner.DataBind()

0 commit comments

Comments
 (0)