From 8b198bed441d0ba365efbe7779e781022362400c Mon Sep 17 00:00:00 2001 From: "Cleopatra Enjeck M." Date: Mon, 9 Dec 2024 20:59:56 +0100 Subject: [PATCH] fix: use actual providerId in link rows Signed-off-by: Cleopatra Enjeck M. --- lib/Service/ColumnTypes/TextLinkBusiness.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/ColumnTypes/TextLinkBusiness.php b/lib/Service/ColumnTypes/TextLinkBusiness.php index 52560eec5..46ff3837c 100644 --- a/lib/Service/ColumnTypes/TextLinkBusiness.php +++ b/lib/Service/ColumnTypes/TextLinkBusiness.php @@ -27,7 +27,7 @@ public function parseValue($value, ?Column $column = null): string { return json_encode(json_encode([ 'title' => $matches[1], 'value' => $matches[2], - 'providerId' => 'url', + 'providerId' => $data['providerId'] ?? 'url', ])); } @@ -38,7 +38,7 @@ public function parseValue($value, ?Column $column = null): string { return json_encode(json_encode([ 'title' => $data['title'] ?? $data['resourceUrl'], 'value' => $data['resourceUrl'], - 'providerId' => 'url', + 'providerId' => $data['providerId'] ?? 'url', ])); } // at least title and resUrl have to be set