Skip to content

Commit

Permalink
Revert "PGP export fix"
Browse files Browse the repository at this point in the history
This reverts commit 012b8b9.
  • Loading branch information
knelson-farmbeltnorth committed Apr 23, 2024
1 parent 012b8b9 commit 47ce3bf
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ISOv4Plugin/Mappers/ProductGroupMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,7 @@ public ISOProductGroup ExportProductGroup(string productGroupName, bool isCropTy
{
if (productGroupName == "Variety")
{
if (isCropType)
{
//This is the CropType group. Some systems fail to recognize PDTs in this group based on an interpretation of the spec.
return this.ExportProductGroup("CropType", true);
}
else
{
//Make a PGP which we link to PDTs.
return this.ExportProductGroup("VarietyProducts", false);
}
return this.ExportProductGroup("CropType", true);
}
else if (ISOTaskData.ChildElements.OfType<ISOProductGroup>().Any(g => g.ProductGroupDesignator == productGroupName))
{
Expand Down

0 comments on commit 47ce3bf

Please sign in to comment.