Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
BSD 3-Clause "New" or "Revised" License
2.37k
stars
1.12k
forks
source link
Search in media library (controller) #4796
Open
orchardbot opened 9 years ago
neTp9c created: https://orchard.codeplex.com/workitem/20967
After media item loaded by ajax than checks folderPath (https://orchard.codeplex.com/SourceControl/latest#src/Orchard.Web/Modules/Orchard.MediaLibrary/Scripts/media-library.js) $.ajax({ type: "GET", url: url, cache: false }).done(function(data) { var mediaItems = data.mediaItems; var mediaItemsFolderPath = data.folderPath;
but controller MediaController (https://orchard.codeplex.com/SourceControl/latest#src/Orchard.Web/Modules/Orchard.Search/Controllers/MediaController.cs) and view (https://orchard.codeplex.com/SourceControl/latest#src/Orchard.Web/Modules/Orchard.Search/Views/Media/MediaItems.cshtml) do not set folderPath.
Therefore the results of the search are not displayed.