C2025-023 Electronic Procedures - Modifications to PROMS (Phase 1)
Changed linq to use builtin Find method per code analyzer recommendation
This commit is contained in:
parent
04a2da4371
commit
f49c888307
@ -2120,7 +2120,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
|
|
||||||
if (ActiveFormat.PlantFormat.EPFormatFiles.Count == 0) return filtered;
|
if (ActiveFormat.PlantFormat.EPFormatFiles.Count == 0) return filtered;
|
||||||
if ((int)MyContent.Type < 20000) 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;
|
if (unfiltered == null) return filtered;
|
||||||
|
|
||||||
//Build list of step type and step type of it's parents
|
//Build list of step type and step type of it's parents
|
||||||
|
Loading…
x
Reference in New Issue
Block a user