Skip to content

Commit

Permalink
#8400 revert to Copy var gps/metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Mar 31, 2022
1 parent b587642 commit 80ea9e7
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,8 @@ public Dataset execute(CommandContext ctxt) throws CommandException {
metadataUpdated = true;
}

/*
Use set methods here as copy was causing detached objects
*/
publishedFmd.setVariableMetadatas(draftFmd.getVariableMetadatas());
publishedFmd.setVarGroups(draftFmd.getVarGroups());
publishedFmd.copyVariableMetadata(draftFmd.getVariableMetadatas());
publishedFmd.copyVarGroups(draftFmd.getVarGroups());

}
if (metadataUpdated) {
Expand Down

0 comments on commit 80ea9e7

Please sign in to comment.