Skip to content

Commit 239f367

Browse files
authored
Update ElasticsearchProviderResourceMetadataCollectionFactory.php
by default the elasticsearch is not false but null so it will create confusion with indices and try to check the index as the shortName. But the shortName by default is the model class and it is not true for every cases , even if the index is different of the class and create an issue
1 parent d0fcd70 commit 239f367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Metadata/Resource/Factory/ElasticsearchProviderResourceMetadataCollectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function create(string $resourceClass): ResourceMetadataCollection
8282

8383
private function hasIndices(Operation $operation): bool
8484
{
85-
if (false === $operation->getElasticsearch()) {
85+
if (false === $operation->getElasticsearch() || null === $operation->getElasticsearch()) {
8686
return false;
8787
}
8888

0 commit comments

Comments
 (0)