Skip to content

Commit

Permalink
removed boolean that only checked for missing eventDataId (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
jallentxbiomed authored Aug 1, 2024
1 parent fa50fa1 commit 3424fcd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/org/labkey/snd/SNDManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -4044,14 +4044,12 @@ private Map<Integer, List<EventData>> getBulkEventData(Container c, Map<Integer,

addExtraFieldsToEventData(eventData, eventDataExtraFields, extraFields);

boolean isEmptyEventDataAndHasChildPackages =
boolean hasEmptySubpackages =
includeEmptySubPackages
&&
!originalEventDataIds.contains(eventData.getEventDataId())
&&
!superPackagesByEventDataId.get(eventData.getEventDataId()).getChildPackages().isEmpty();

Map<Integer, Map<Integer, SuperPackage>> nextLevelSuperPkgs = getNextLevelEventDataSuperPkgs(eventData, childEventData, currentLevelSuperPkgs, includeEmptySubPackages, isEmptyEventDataAndHasChildPackages);
Map<Integer, Map<Integer, SuperPackage>> nextLevelSuperPkgs = getNextLevelEventDataSuperPkgs(eventData, childEventData, currentLevelSuperPkgs, includeEmptySubPackages, hasEmptySubpackages);

if (nextLevelSuperPkgs != null && !nextLevelSuperPkgs.isEmpty()) {
// Recursion for next child level of sub packages
Expand Down

0 comments on commit 3424fcd

Please sign in to comment.