Skip to content

Commit dc10a5a

Browse files
committed
Исправить присвоение уникальных id задачам в
случае, если часть грузится из файла.
1 parent 13a9b35 commit dc10a5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ru/alexgur/kanban/model/Task.java

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public Task() {
1717

1818
public Task(int id) {
1919
this.status = Status.NEW;
20+
if (globalId < id) {
21+
globalId = id;
22+
}
2023
this.id = id;
2124
}
2225

0 commit comments

Comments
 (0)