fixed bug for records with deleted views.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD 2024-02-13 16:16:49 -07:00
parent ecef1c8640
commit ac1c2ca7fe

View File

@ -176,6 +176,10 @@ namespace CarCareTracker.Helper
var fieldNames = templateExtraFields.Select(x => x.Name);
//remove fields that are no longer present in template.
recordExtraFields.RemoveAll(x => !fieldNames.Contains(x.Name));
if (!recordExtraFields.Any())
{
return templateExtraFields;
}
//append the fields.
foreach (ExtraField extraField in recordExtraFields)
{