Unverified Commit 701a4235 authored by jcwbacker's avatar jcwbacker Committed by GitHub
Browse files

Merge pull request #453 from kberryUSGS/fix_tgo_observation_id_error

Fix tgo errors: error about ObservationId not existing in the Image PVL Group.
parents 77ae86d2 5f6df1d1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -68,9 +68,12 @@ void IsisMain() {
    productId.setValue( ui.GetString("PRODUCTID") );
  }
  else {
    QString observationId = targetGroup.findKeyword("ObservationId")[0];
    // Get the observationId from the Archive Group.
    PvlGroup archiveGroup = label->findObject("IsisCube").findGroup("Archive");
    QString observationId = archiveGroup.findKeyword("ObservationId")[0];
    productId.setValue(observationId);
  }

  targetGroup.addKeyword(productId);  
  logicalId += productId[0];
  process.setLogicalId(logicalId);