Merge pull request #121 from creative-commoners/pulls/2.2/remove-json-methods

FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4
This commit is contained in:
Guy Marriott 2018-10-29 11:46:08 +13:00 committed by GitHub
commit 02c646a0ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -270,7 +270,7 @@ class StringTagField extends DropdownField
*/
public function suggest(HTTPRequest $request)
{
$responseBody = Convert::raw2json(
$responseBody = json_encode(
array('items' => array())
);
@ -285,7 +285,7 @@ class StringTagField extends DropdownField
$tags = $this->getTags($term);
}
$responseBody = Convert::raw2json(
$responseBody = json_encode(
array('items' => $tags)
);
}

View File

@ -219,7 +219,7 @@ class TagField extends DropdownField
}
$schema['optionUrl'] = $this->getSuggestURL();
}
$this->setAttribute('data-schema', Convert::array2json($schema));
$this->setAttribute('data-schema', json_encode($schema));
$this->addExtraClass('ss-tag-field');