From b89a00b934cc5b93ac0d4d45ef17c5eabe6d05b7 Mon Sep 17 00:00:00 2001 From: j-dimension Date: Mon, 30 Sep 2024 15:00:47 +0200 Subject: [PATCH] fixed issue with duplication not copying the parties. issue #2455 --- .../client/editors/files/QuickArchiveFileSearchPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/QuickArchiveFileSearchPanel.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/QuickArchiveFileSearchPanel.java index db8742f4e..1484ccc27 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/QuickArchiveFileSearchPanel.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/QuickArchiveFileSearchPanel.java @@ -1257,6 +1257,8 @@ private void mnuDuplicateSelectedArchiveFilesActionPerformed(java.awt.event.Acti source.setArchived(false); source.setClaimNumber(""); source.setClaimValue(0f); + // reset external IDs + source.setExternalId(null); ArchiveFileBean target=fileService.createArchiveFile(source); @@ -1270,7 +1272,7 @@ private void mnuDuplicateSelectedArchiveFilesActionPerformed(java.awt.event.Acti newAab.setCustom2(aab.getCustom2()); newAab.setCustom3(aab.getCustom3()); newAab.setReferenceType(aab.getReferenceType()); - target.addParty(newAab); + fileService.addAddressToCase(newAab); }