mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4
This commit is contained in:
parent
7f5b1ebced
commit
1ad87eb374
@ -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)
|
||||
);
|
||||
}
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user