From f49c888307429dbd8e42203a1bb641e917286f92 Mon Sep 17 00:00:00 2001 From: mschill Date: Thu, 15 May 2025 10:57:28 -0400 Subject: [PATCH] C2025-023 Electronic Procedures - Modifications to PROMS (Phase 1) Changed linq to use builtin Find method per code analyzer recommendation --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index 64be4c7e..2dcfd7c5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -2120,7 +2120,7 @@ namespace VEPROMS.CSLA.Library if (ActiveFormat.PlantFormat.EPFormatFiles.Count == 0) return filtered; if ((int)MyContent.Type < 20000) return filtered; - EPFields unfiltered = ActiveFormat.PlantFormat.EPFormatFiles.FirstOrDefault(x => x.AnnotationTypeID == AnnTypeID)?.FieldList; + EPFields unfiltered = ActiveFormat.PlantFormat.EPFormatFiles.Find(x => x.AnnotationTypeID == AnnTypeID)?.FieldList; if (unfiltered == null) return filtered; //Build list of step type and step type of it's parents