Merge pull request #3380 from sbwalker/dev
resolve issue in making Pager search work with sorting
This commit is contained in:
commit
767fa78e22
@ -295,6 +295,10 @@
|
|||||||
if (!string.IsNullOrEmpty(SearchProperties))
|
if (!string.IsNullOrEmpty(SearchProperties))
|
||||||
{
|
{
|
||||||
AllItems = Items; // only used in search
|
AllItems = Items; // only used in search
|
||||||
|
if (!string.IsNullOrEmpty(_search))
|
||||||
|
{
|
||||||
|
Search();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(PageSize))
|
if (!string.IsNullOrEmpty(PageSize))
|
||||||
|
@ -32,8 +32,9 @@ namespace Oqtane.Repository
|
|||||||
|
|
||||||
public IEnumerable<File> GetFiles(int folderId, bool tracking)
|
public IEnumerable<File> GetFiles(int folderId, bool tracking)
|
||||||
{
|
{
|
||||||
var alias = _tenants.GetAlias();
|
var folder = _folderRepository.GetFolder(folderId, false);
|
||||||
IEnumerable<Permission> permissions = _permissions.GetPermissions(alias.SiteId, EntityNames.Folder, folderId).ToList();
|
IEnumerable<Permission> permissions = _permissions.GetPermissions(folder.SiteId, EntityNames.Folder, folderId).ToList();
|
||||||
|
|
||||||
IEnumerable<File> files;
|
IEnumerable<File> files;
|
||||||
if (tracking)
|
if (tracking)
|
||||||
{
|
{
|
||||||
@ -46,6 +47,7 @@ namespace Oqtane.Repository
|
|||||||
foreach (File file in files)
|
foreach (File file in files)
|
||||||
{
|
{
|
||||||
file.Folder.PermissionList = permissions.ToList();
|
file.Folder.PermissionList = permissions.ToList();
|
||||||
|
var alias = _tenants.GetAlias();
|
||||||
file.Url = GetFileUrl(file, alias);
|
file.Url = GetFileUrl(file, alias);
|
||||||
}
|
}
|
||||||
return files;
|
return files;
|
||||||
|
Reference in New Issue
Block a user