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:
mvarblow
2015-05-13 16:54:23 -04:00
parent 91e040e684
commit f5862bd628

View File

@@ -59,10 +59,11 @@ namespace Orchard.Search.Controllers {
var viewModel = new MediaManagerMediaItemsViewModel {
MediaItems = mediaItems,
MediaItemsCount = mediaPartsCount
MediaItemsCount = mediaPartsCount,
FolderPath = folderPath
};
return View(viewModel);
}
}
}
}