diff --git a/tracker/src/main/kotlin/org/dhis2/tracker/relationships/data/RelationshipsRepository.kt b/tracker/src/main/kotlin/org/dhis2/tracker/relationships/data/RelationshipsRepository.kt
index 77c4062769..93ccfa2509 100644
--- a/tracker/src/main/kotlin/org/dhis2/tracker/relationships/data/RelationshipsRepository.kt
+++ b/tracker/src/main/kotlin/org/dhis2/tracker/relationships/data/RelationshipsRepository.kt
@@ -268,11 +268,13 @@ abstract class RelationshipsRepository(
): String {
return when (entitySide) {
RelationshipConstraintType.FROM -> {
- relationshipType.fromToName() ?: relationshipType.displayName() ?: ""
+ relationshipType.fromToName() ?: relationshipType.displayName()
+ ?: resources.getString(R.string.relationship)
}
RelationshipConstraintType.TO -> {
- relationshipType.toFromName() ?: relationshipType.displayName() ?: ""
+ relationshipType.toFromName() ?: relationshipType.displayName()
+ ?: resources.getString(R.string.relationship)
}
}
}
diff --git a/tracker/src/main/res/values/strings.xml b/tracker/src/main/res/values/strings.xml
index 53478afd2c..3659326363 100644
--- a/tracker/src/main/res/values/strings.xml
+++ b/tracker/src/main/res/values/strings.xml
@@ -7,4 +7,5 @@
Remove %d selected relationships?
The %d selected relationships will be deleted. This action cannot be undone.
Show %d more...
+ Relationship
\ No newline at end of file