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