From 71f845afe7e2cb4ae557dcb504b4c70ece70b310 Mon Sep 17 00:00:00 2001 From: Sascha Bieberstein Date: Mon, 22 Apr 2024 17:03:26 +0200 Subject: [PATCH] Ensure select link in user and tenant search results works This was caused by missing opening quotes of the href attribute. Fixes: SIRI-957 --- src/main/java/sirius/biz/tenants/TenantSearchProvider.java | 3 +-- .../java/sirius/biz/tenants/UserAccountSearchProvider.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/sirius/biz/tenants/TenantSearchProvider.java b/src/main/java/sirius/biz/tenants/TenantSearchProvider.java index fbc67f15a..b248ad1a7 100644 --- a/src/main/java/sirius/biz/tenants/TenantSearchProvider.java +++ b/src/main/java/sirius/biz/tenants/TenantSearchProvider.java @@ -70,10 +70,9 @@ public void query(String query, int maxResults, Consumer resul if (currentUser.hasPermission(TenantUserManager.PERMISSION_SELECT_TENANT)) { openSearchResult.withTemplateFromCode(""" - @tenant.getTenantData().getAddress().getZip() @tenant.getTenantData().getAddress().getCity()
- @i18n("TenantController.select") + @i18n("TenantController.select") """, tenant); } resultCollector.accept(openSearchResult); diff --git a/src/main/java/sirius/biz/tenants/UserAccountSearchProvider.java b/src/main/java/sirius/biz/tenants/UserAccountSearchProvider.java index 62aa5f99b..0ced63345 100644 --- a/src/main/java/sirius/biz/tenants/UserAccountSearchProvider.java +++ b/src/main/java/sirius/biz/tenants/UserAccountSearchProvider.java @@ -98,10 +98,9 @@ public void query(String query, int maxResults, Consumer resul if (currentUser.hasPermission(TenantUserManager.PERMISSION_SELECT_USER_ACCOUNT)) { openSearchResult.withTemplateFromCode(""" - @user (@user.getTenant().fetchValue().toString())
- @i18n("TenantController.select") + @i18n("TenantController.select") """, userAccount); } resultCollector.accept(openSearchResult);