Skip to content
Snippets Groups Projects
Commit b2d4841b authored by Andrew Chappell's avatar Andrew Chappell
Browse files

Catch edge case where OS mappings weren't set

parent 50d43c5c
No related branches found
No related tags found
No related merge requests found
Pipeline #200592 skipped
......@@ -372,6 +372,11 @@ class BackendClient implements BackendClientInterface {
'index' => $this->getIndexId($index),
]);
$drupalMapping = $this->fieldParamsBuilder->mapFieldParams($this->getIndexId($index), $index);
// If mappings have yet to be set no need to clear.
if (!isset($openSearchMapping[$this->getIndexId($index)]['mappings']['properties'])) {
return FALSE;
}
// Recursively check for differences in the mappings between the
// $openSearchMapping and $drupalMapping arrays. Before comparing,
// convert $drupalMapping to a json format returned as an
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment