#18936: Fixing possible NRE in menu items display

Work Item: 18936

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-09-21 17:15:26 -07:00
parent 7890814c01
commit 01cb592431

View File

@@ -20,7 +20,7 @@
<label for="menuId">@T("Current Menu:")</label>
<select id="menuId" name="menuId">
@foreach (var menu in Model.Menus) {
@Html.SelectOption(Model.CurrentMenu.Id, menu.Id, Html.ItemDisplayText(menu).ToString())
@Html.SelectOption(Model.CurrentMenu.Id, menu.Id, Convert.ToString(Html.ItemDisplayText(menu)))
}
</select>
<button type="submit" class="apply-bulk-actions-auto">@T("Show")</button>