import contacts: only drop relation of type representative if holder and anchor are the same
This commit is contained in:
parent
341f5a7fb0
commit
be4c98f608
@ -503,7 +503,7 @@ public abstract class BaseOfficeDataImport extends CsvDataImport {
|
|||||||
// this happens if a natural person is marked as 'contractual' for itself
|
// this happens if a natural person is marked as 'contractual' for itself
|
||||||
final var idsToRemove = new HashSet<Integer>();
|
final var idsToRemove = new HashSet<Integer>();
|
||||||
relations.forEach((id, r) -> {
|
relations.forEach((id, r) -> {
|
||||||
if (r.getHolder() == r.getAnchor()) {
|
if (r.getType() == HsOfficeRelationType.REPRESENTATIVE && r.getHolder() == r.getAnchor()) {
|
||||||
idsToRemove.add(id);
|
idsToRemove.add(id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user