From 3fc890ab52db89a1d001dc8c7aad70ae44883ccf Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 4 Jun 2012 14:59:53 +0000 Subject: [PATCH] Fixed logic for TabTitle that was not identifying Library Documents --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index e2116841..18ca9e7c 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -1674,10 +1674,12 @@ namespace VEPROMS.CSLA.Library get { if (MyContent.MyEntry == null) - if(DisplayNumber == string.Empty) + { + if (DisplayNumber == string.Empty) return DisplayText.Replace("\u2011", "-").Split(" ,.;:-_".ToCharArray())[0] + "..."; - return DisplayNumber.Replace("\u2011","-"); - if (MyContent.Number != "") + return DisplayNumber.Replace("\u2011", "-"); + } + if (MyContent.Number != "") // Add LIB to the Section Number return ((MyContent.MyEntry.MyDocument.LibTitle ?? "") == "" ? "" : "\u1D38\u1D35\u1D2E ") + DisplayNumber; if (MyContent.MyEntry.MyDocument.LibTitle != "") {