[Lada-commits] [PATCH] Set empty text as comment in copied status
Wald Commits
scm-commit at wald.intevation.org
Thu Feb 4 15:25:05 CET 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1454595913 -3600
# Node ID e701e2df6516bac8a2d1b6c9d1f09be79b5e7c88
# Parent 04bec189ca196082e7b1a0d03311b0c7d4ab3f95
Set empty text as comment in copied status.
diff -r 04bec189ca19 -r e701e2df6516 src/main/java/de/intevation/lada/rest/StatusService.java
--- a/src/main/java/de/intevation/lada/rest/StatusService.java Thu Feb 04 13:50:24 2016 +0100
+++ b/src/main/java/de/intevation/lada/rest/StatusService.java Thu Feb 04 15:25:13 2016 +0100
@@ -434,7 +434,7 @@
copy.setMessungsId(orig.getMessungsId());
copy.setStatusStufe(orig.getStatusStufe());
copy.setStatusWert(orig.getStatusWert());
- copy.setText(orig.getText());
+ copy.setText("");
retValue = defaultRepo.create(copy, "land");
LStatusProtokoll createdCopy = (LStatusProtokoll)retValue.getData();
messung.setStatus(createdCopy.getId());
More information about the Lada-commits
mailing list