From f0a2adc6965e9a69d3bcbf28115403ca0a3054c6 Mon Sep 17 00:00:00 2001 From: Sebastian Castro <sebastian.castro@protonmail.com> Date: Mon, 19 Aug 2019 15:47:26 +0200 Subject: [PATCH] Fixs double json encode --- src/Biopen/GeoDirectoryBundle/Document/OptionValue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Biopen/GeoDirectoryBundle/Document/OptionValue.php b/src/Biopen/GeoDirectoryBundle/Document/OptionValue.php index 00fec57b7..aa7339b5e 100755 --- a/src/Biopen/GeoDirectoryBundle/Document/OptionValue.php +++ b/src/Biopen/GeoDirectoryBundle/Document/OptionValue.php @@ -39,7 +39,7 @@ class OptionValue { $result = "{"; $result .= '"id":' . $this->optionId ; - if ($optionName) $result .= ', "name":' . json_encode($optionName); + if ($optionName) $result .= ', "name":' . $optionName; $result .=', "description":' . json_encode($this->description); $result .=', "index":' . $this->index; $result .= "}"; -- GitLab