mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Update MediaController.cs
Fix for issue https://github.com/OrchardCMS/Orchard/issues/5275. The fix is to return the FolderPath element in the response to the media search request so that the folderPath check in the javascript code succeeds.
This commit is contained in:
@@ -59,10 +59,11 @@ namespace Orchard.Search.Controllers {
|
||||
|
||||
var viewModel = new MediaManagerMediaItemsViewModel {
|
||||
MediaItems = mediaItems,
|
||||
MediaItemsCount = mediaPartsCount
|
||||
MediaItemsCount = mediaPartsCount,
|
||||
FolderPath = folderPath
|
||||
};
|
||||
|
||||
return View(viewModel);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user