Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
-
a232e941
by Tony Chemit at 2020-06-26T09:08:28+02:00
1 changed file:
Changes:
| ... | ... | @@ -52,7 +52,7 @@ import javax.swing.SwingUtilities; |
| 52 | 52 |
import java.awt.Component;
|
| 53 | 53 |
import java.awt.Container;
|
| 54 | 54 |
import java.util.ArrayList;
|
| 55 |
-import java.util.Collections;
|
|
| 55 |
+import java.util.Date;
|
|
| 56 | 56 |
import java.util.List;
|
| 57 | 57 |
import java.util.Map;
|
| 58 | 58 |
import java.util.Objects;
|
| ... | ... | @@ -339,7 +339,7 @@ public class FloatingObjectUIHandler extends ContentEditUIHandler<FloatingObject |
| 339 | 339 |
if (transmittingBuoy == null) {
|
| 340 | 340 |
|
| 341 | 341 |
TransmittingBuoyHelper.copyTransmittingBuoyDto(new TransmittingBuoyDto(), editBean);
|
| 342 |
- |
|
| 342 |
+ editBean.setCreateDate(new Date());
|
|
| 343 | 343 |
editBean.setTransmittingBuoyOperation(operation);
|
| 344 | 344 |
|
| 345 | 345 |
log.debug(String.format("Reuse an empty balise lue for objectOperation %s", operation.getLabel()));
|
| ... | ... | @@ -360,12 +360,7 @@ public class FloatingObjectUIHandler extends ContentEditUIHandler<FloatingObject |
| 360 | 360 |
|
| 361 | 361 |
}
|
| 362 | 362 |
|
| 363 |
- FloatingObjectDto bean = getModel().getBean();
|
|
| 364 |
- |
|
| 365 |
- if (bean.getTransmittingBuoy() == null) {
|
|
| 366 |
- bean.setTransmittingBuoy(Collections.emptyList());
|
|
| 367 |
- }
|
|
| 368 |
- bean.getTransmittingBuoy().add(editBean);
|
|
| 363 |
+ getModel().getBean().getTransmittingBuoy().add(editBean);
|
|
| 369 | 364 |
}
|
| 370 | 365 |
|
| 371 | 366 |
private TransmittingBuoyOperationReference getObjectOperation(List<TransmittingBuoyOperationReference> operations, String codeOperation) {
|