Skip to content

Commit

Permalink
Fix part of #33: update specimen parts table on attribute change
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Jan 27, 2021
1 parent c1510b6 commit e540683
Show file tree
Hide file tree
Showing 4 changed files with 291 additions and 294 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public Object clone() {
SpecimenPartAttribute newAttr = new SpecimenPartAttribute(
null, attributeType, attributeValue,
attributeUnits, attributeRemark, attributeDeterminer,
(Date)attributeDate.clone());
attributeDate == null ? null : (Date)attributeDate.clone());
return newAttr;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,7 @@ public void actionPerformed(ActionEvent e) {
((PositionTemplateEditor)parentComponent)
.setTemplate((String)targetId);
} catch (NoSuchTemplateException e1) {
log.error("No such template on button press on a template in list.");
log.error("Error", e1);
;
log.trace("Trace", e1);
;
log.error("No such template on button press on a template in list.", e1);
}

break;
Expand Down Expand Up @@ -332,7 +328,7 @@ public void actionPerformed(ActionEvent e) {
break;
case OPEN_SPECIMENPARTATTRIBUTES:
SpecimenPartAttributeDialog attrDialog =
new SpecimenPartAttributeDialog((SpecimenPart)targetId);
new SpecimenPartAttributeDialog((SpecimenPart)targetId, parentComponent);
attrDialog.setVisible(true);
break;
}
Expand Down
Loading

0 comments on commit e540683

Please sign in to comment.