#19994: Fixing content picker reidrect loop

Work Item: 19994
This commit is contained in:
Sebastien Ros
2013-11-07 16:10:30 -08:00
parent 17852686e0
commit c9e8b3bd99

View File

@@ -49,7 +49,7 @@ namespace Orchard.ContentPicker.Controllers {
return HttpNotFound();
}
if (contentPickerMenuItem.Items.All(x => x.Text.ToString() != T("Recent Content").Text)) {
if (contentPickerMenuItem.Items.All(x => x.Text.TextHint != "Recent Content")) {
// the default tab should not be displayed, redirect to the next one
var root = menuItems.FirstOrDefault();
if (root == null) {