Skip to content

Commit

Permalink
MID-8470: Do not include incomplete=true in LookupTables
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydamage committed Mar 24, 2023
1 parent de9ab58 commit 785370b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import com.evolveum.midpoint.prism.PrismContainer;
import com.evolveum.midpoint.prism.path.ItemPath;
import com.evolveum.midpoint.prism.path.PathSet;
import com.evolveum.midpoint.prism.polystring.PolyString;
Expand Down Expand Up @@ -132,6 +133,11 @@ private void appendLookupTableRows(

List<MLookupTableRow> result = query.fetch();

// Should we remove incomplete only if all rows are present?
var rowContainer = base.asPrismContainer().findContainer(F_ROW);
if (rowContainer != null) {
rowContainer.setIncomplete(false);
}
for (MLookupTableRow r : result) {
LookupTableRowType lookupRow = new LookupTableRowType().key(r.key);
if (r.labelOrig != null || r.labelNorm != null) {
Expand Down

0 comments on commit 785370b

Please sign in to comment.