Merge pull request #545 from marininicola/develop
Fix an issue when searching an asset in CMS backend
This commit is contained in:
commit
d9ca311ce3
|
|
@ -640,7 +640,7 @@ class AssetList extends WidgetBase
|
|||
if ($this->pathMatchesSearch($words, $path)) {
|
||||
$result[] = (object)[
|
||||
'type'=>'file',
|
||||
'path'=>$path,
|
||||
'path'=>File::normalizePath($path),
|
||||
'name'=>$item->getFilename(),
|
||||
'editable'=>in_array(strtolower($item->getExtension()), $editableAssetTypes)
|
||||
];
|
||||
|
|
@ -664,4 +664,4 @@ class AssetList extends WidgetBase
|
|||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue