From 629b462686b65fd9bd8fdb1d5fedbf6f64552128 Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Mon, 26 Jul 2021 11:51:17 -0300 Subject: [PATCH] fix: return value function `get_item_link` #572 --- .../relationship/class-tainacan-relationship.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/admin/components/metadata-types/relationship/class-tainacan-relationship.php b/src/views/admin/components/metadata-types/relationship/class-tainacan-relationship.php index 635e70969..1062b19bc 100644 --- a/src/views/admin/components/metadata-types/relationship/class-tainacan-relationship.php +++ b/src/views/admin/components/metadata-types/relationship/class-tainacan-relationship.php @@ -257,9 +257,10 @@ class Relationship extends Metadata_Type { \is_post_status_viewable($item->get_collection()->get_status()) ) { $return = " $value "; } else { - $return = "
$value:
"; + $return = $value; } } + return $return; } private function get_meta_html(\Tainacan\Entities\Item_Metadata_Entity $meta, $value_link = false) {