Skip to content

Commit

Permalink
JNG-5906 fix table mask for association bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Sep 4, 2024
1 parent f586ba1 commit acf1af1
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,17 @@ public static MaskEntry getMaskForTable(Table table, PageDefinition pageDefiniti
}
}

for (Button button: table.getTableActionButtonGroup().getButtons()) {
if (button.getActionDefinition().getIsBulkCallOperationAction()) {
if (button.getHiddenBy() != null) {
mask.addPrimitives(button.getHiddenBy().getName());
}
if (button.getEnabledBy() != null) {
mask.addPrimitives(button.getEnabledBy().getName());
if (table.isIsEager()) {
// only add bulk action hidden and enabled by mask attributes for eager tables
// because such attributes can only come from the owner
for (Button button : table.getTableActionButtonGroup().getButtons()) {
if (button.getActionDefinition().getIsBulkCallOperationAction()) {
if (button.getHiddenBy() != null) {
mask.addPrimitives(button.getHiddenBy().getName());
}
if (button.getEnabledBy() != null) {
mask.addPrimitives(button.getEnabledBy().getName());
}
}
}
}
Expand Down

0 comments on commit acf1af1

Please sign in to comment.