Fix get comments children

This commit is contained in:
2020-01-30 17:30:11 +01:00
parent 5161dca1d5
commit 77658c5f6b
4 changed files with 23 additions and 4 deletions

View File

@@ -38,4 +38,4 @@ open class Comment<T : TargetI>(
open class CommentRef(id: UUID = UUID.randomUUID()) : CommentS(id)
sealed class CommentS(id: UUID) : UuidEntity(id)
sealed class CommentS(id: UUID) : TargetRef(id)

View File

@@ -42,9 +42,7 @@ interface TargetI : UuidEntityI {
fun getReference(t: TargetI): String {
val ref = this.getReference(t::class)
return if (t is ExtraI<*>) {
ref +
"_on_" +
t.target.reference
"${ref}_on_${t.target.reference}"
} else {
ref
}