Skip to content

Commit

Permalink
bugfix document cloning: set getValueToCopy advisor
Browse files Browse the repository at this point in the history
solves issues like C_Order.PreparationDate was not copied

#54
  • Loading branch information
teosarca committed Sep 7, 2017
1 parent 23027d5 commit 226895b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ public Document duplicateDocument(final DocumentPath fromDocumentPath)


final PO toPO = TableModelLoader.instance.newPO(Env.getCtx(), tableName, ITrx.TRXNAME_ThreadInherited);
toPO.setDynAttribute(PO.DYNATTR_CopyRecordSupport, CopyRecordFactory.getCopyRecordSupport(tableName)); // set "getValueToCopy" advisor
PO.copyValues(fromPO, toPO, true);
InterfaceWrapperHelper.save(toPO);

Expand Down

0 comments on commit 226895b

Please sign in to comment.