Skip to content

Commit

Permalink
#11044 reset input levels prior to update
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Nov 26, 2024
1 parent f0e1916 commit 51e1ad7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public Dataverse execute(CommandContext ctxt) throws CommandException {
dataverse.addInputLevelsMetadataBlocksIfNotPresent(inputLevels);
}
ctxt.fieldTypeInputLevels().deleteFacetsFor(dataverse);
dataverse.setDataverseFieldTypeInputLevels(new ArrayList<>());
for (DataverseFieldTypeInputLevel inputLevel : inputLevels) {
inputLevel.setDataverse(dataverse);
ctxt.fieldTypeInputLevels().create(inputLevel);
Expand Down

0 comments on commit 51e1ad7

Please sign in to comment.