Skip to content

Commit 39fdbec

Browse files
committed
Fix Dataset Details: Titel is cut on "-" #2270
1 parent 0fb9262 commit 39fdbec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Console/BExIS.Web.Shell/Themes/Default/Partials/_Breadcrumb.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@{
22
string title = ViewBag.Title;
33

4-
if (title.Contains("-"))
4+
// if title is not null and contains "-"
5+
if (!string.IsNullOrEmpty(title) && title.Contains("-"))
56
{
67
// Remove only before the first hyphen and show the rest (BEXIS2 - Show Dataset: -> Show Dataset:)
78
title = title.Substring(title.IndexOf('-') + 1).Trim();

0 commit comments

Comments
 (0)