FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4

This commit is contained in:
Robbie Averill 2018-10-28 21:42:26 +00:00
parent 7f5b1ebced
commit 1ad87eb374
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');