From 4ddb8ab5ea5f01c3f0b99e8ecc53ddbfde570a2a Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Tue, 17 Aug 2021 15:07:59 -0300 Subject: [PATCH] fix: return get options as html on relationship --- .../metadata-types/relationship/class-tainacan-relationship.php | 2 +- 1 file changed, 1 insertion(+), 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 4f78608b7..db9dc2ecc 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 @@ -124,7 +124,7 @@ class Relationship extends Metadata_Type { break; default: - $readable_option_value = $option_value; + $readable_option_value = is_string($option_value) ? $option_value : json_encode($option_value); } $options_as_html .= '
' . $readable_option_value . '
'; }