Revision 35105144
Added by Andreas Müller almost 2 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/PolytomousKeyNode.java | ||
---|---|---|
513 | 513 |
if (child != null) { |
514 | 514 |
children.remove(index); |
515 | 515 |
child.setParent(null); |
516 |
// TODO workaround (see sortIndex doc) |
|
517 |
for (int i = 0; i < children.size(); i++) { |
|
518 |
PolytomousKeyNode childAt = children.get(i); |
|
519 |
childAt.setSortIndex(i); |
|
520 |
} |
|
521 |
child.setSortIndex(null); |
|
516 |
// // TODO workaround (see sortIndex doc)
|
|
517 |
// for (int i = 0; i < children.size(); i++) {
|
|
518 |
// PolytomousKeyNode childAt = children.get(i);
|
|
519 |
// childAt.setSortIndex(i);
|
|
520 |
// }
|
|
521 |
// child.setSortIndex(null);
|
|
522 | 522 |
child.setNodeNumber(null); |
523 | 523 |
} |
524 | 524 |
refreshNodeNumbering(); |
Also available in: Unified diff
ref #10067, ref #3722, ref #8127 remove remaining sortindex handling from polytomous key node