From b6faa98f0d27f05a53f0a869326715f46b7dac9b Mon Sep 17 00:00:00 2001 From: John Date: Thu, 1 Aug 2013 18:58:36 +0000 Subject: [PATCH] override docstyle based on content of the section. If the section has word content then return false --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index 9f1ec453..9832afdd 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -1326,7 +1326,8 @@ namespace VEPROMS.CSLA.Library { get { - if (IsSection && MyDocStyle.IsStepSection) return true; + //override docstyle based on content of the section. If the section has word content then return false + if (IsSection && MyContent.ContentEntryCount == 0 && MyDocStyle.IsStepSection) return true; return false; } }