mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
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:
commit
02c646a0ee
@ -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