Commit 5f6df1d1 authored by Kristin Berry's avatar Kristin Berry
Browse files

Fix error about ObservationId not existing in the Image PVL Group. (This was deliberately moved.)

parent 77ae86d2
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);