Merge pull request #545 from marininicola/develop

Fix an issue when searching an asset in CMS backend
This commit is contained in:
Samuel Georges 2014-08-14 08:25:52 +10:00
commit d9ca311ce3
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
}