From 23ed5913db15b83aee87944a2af1bb56056ca671 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 4 Jun 2010 19:25:40 +0000 Subject: [PATCH] fix for ColumnMode usage --- 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 2ffecbef..031a74f5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -699,7 +699,8 @@ namespace VEPROMS.CSLA.Library SectionInfo si = SectionInfo.Get(ActiveSection.ItemID); //ActiveSection as SectionInfo; if (si != null) { - if (si.SectionConfig.Section_ColumnMode != SectionConfig.SectionColumnMode.Default) + // there is no longer a "default" ENUM item - SectionConfig will return format default if needed + //if (si.SectionConfig.Section_ColumnMode != SectionConfig.SectionColumnMode.Default) return (int)si.SectionConfig.Section_ColumnMode - 1; } return (ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.PMode ?? 2) -1;