Skip to content

Commit 75845e2

Browse files
committed
AMP-30574
Map primary and secondary sectors
1 parent 0aac6a7 commit 75845e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

amp/WEB-INF/src/org/dgfoundation/amp/onepager/components/features/sections/AmpSectorsFormSectionFeature.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ private void populateSecondarySectorsFor1Choice(AjaxRequestTarget target, AmpCla
122122

123123
logger.info("Choices found: " + choices);
124124
logger.info("Sector Choices found: " + sectorChoices);
125-
secondarySectorsTable.getSearchSectors().getModelParams().put(AmpSectorSearchModel.PARAM.NEW_CHOICES, choices);
126125

127126
if (sectorChoices.size() == 1) {
128127
for (AmpSector secondarySector : choices) {
@@ -140,11 +139,12 @@ private void populateSecondarySectorsFor1Choice(AjaxRequestTarget target, AmpCla
140139

141140
}
142141

142+
secondarySectorsTable.getSearchSectors().getModelParams().put(AmpSectorSearchModel.PARAM.NEW_CHOICES, choices);
143143

144144

145-
// List<AmpSector> srcSectorSelected = (List<AmpSector>) this.primarySectorsTable.getSearchSectors().getModelParams().get(AmpSectorSearchModel.PARAM.SRC_SECTOR_SELECTED);
146-
147-
// secondarySectorsTable.updateBasedOnData(srcSectorSelected);
145+
List<AmpSector> srcSectorSelected = (List<AmpSector>) this.primarySectorsTable.getSearchSectors().getModelParams().get(AmpSectorSearchModel.PARAM.SRC_SECTOR_SELECTED);
146+
//
147+
secondarySectorsTable.updateBasedOnData(srcSectorSelected);
148148

149149
secondarySectorsTable.triggerUpdateEvent(secondarySectorsTable.getSetModel().getObject(), sectorClassification);
150150

0 commit comments

Comments
 (0)