Skip to content

Commit cef4fb2

Browse files
committed
AMP-30574
Map primary and secondary sectors
1 parent d7162a9 commit cef4fb2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,17 @@ private void populateSecondarySectorsFor1Choice(AjaxRequestTarget target, AmpCla
137137
target.add(secondarySectorsTable.getList().getParent());
138138

139139
}
140+
secondarySectorsTable.getSearchSectors().getModelParams().put(AmpSectorSearchModel.PARAM.NEW_CHOICES, choices);
141+
140142
List<AmpSector> srcSectorSelected = (List<AmpSector>) this.primarySectorsTable.getSearchSectors().getModelParams().get(AmpSectorSearchModel.PARAM.SRC_SECTOR_SELECTED);
141143

142-
// secondarySectorsTable.updateBasedOnData(srcSectorSelected);
144+
secondarySectorsTable.updateBasedOnData(srcSectorSelected);
145+
146+
secondarySectorsTable.triggerUpdateEvent(secondarySectorsTable.getSetModel().getObject(), sectorClassification);
143147

144-
// secondarySectorsTable.triggerUpdateEvent(secondarySectorsTable.getSetModel().getObject(), sectorClassification);
145-
secondarySectorsTable.getSearchSectors().getModelParams().put(AmpSectorSearchModel.PARAM.NEW_CHOICES, choices);
146148

147149
target.add(secondarySectorsTable.getSearchSectors());
150+
secondarySectorsTable.refreshTable(target);
148151

149152

150153
}

0 commit comments

Comments
 (0)