Skip to content

Commit

Permalink
Satzvarianten: bei Basis-ID Var "-00" aufrufen
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerning committed Oct 11, 2023
1 parent 4bf32e2 commit 31ce725
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/tla/backend/service/EntityService.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ public T retrieve(String id) {
*/
public SingleDocumentWrapper<? extends AbstractDto> getDetails(String id) {
T document = this.retrieve(id);
if (document == null) {
document = this.retrieve(id.concat("-00")); // try again as an instance of a sentence variant
}
final SingleDocumentWrapper<?> container;
if (document != null) {
container = new SingleDocumentWrapper<>(
Expand Down

0 comments on commit 31ce725

Please sign in to comment.