Skip to content

Commit

Permalink
Merge pull request #75 from jsirish/bugfix/ss5depreciations
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Aug 30, 2023
2 parents fadd0c2 + b49c385 commit ac9184a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HasOneAddExistingAutoCompleter.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function doSearch($gridField, $request)

Config::nest();

SSViewer::config()->update('source_file_comments', false);
SSViewer::config()->set('source_file_comments', false);

$viewer = SSViewer::fromString($this->resultsFormat);

Expand All @@ -147,7 +147,7 @@ public function doSearch($gridField, $request)
Config::unnest();

return HTTPResponse::create()
->setBody(Convert::array2json($json))
->setBody(json_encode($json))
->addHeader('Content-Type', 'text/json');
}
}

0 comments on commit ac9184a

Please sign in to comment.