Skip to content

Commit d79fcea

Browse files
committed
[Core] Fixes #3815 search relevance config form
Logic change to get hold of the collection used to load the configuration data introduced in Magento 2.4.7. Fix is innocuous in 2.4.6.
1 parent 4548a2a commit d79fcea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/module-elasticsuite-core/etc

src/module-elasticsuite-core/etc/di.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@
296296
<virtualType name="Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Loader" type="Magento\Config\Model\Config\Loader">
297297
<arguments>
298298
<argument name="configValueFactory" xsi:type="object">Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\ValueFactory</argument>
299+
<!-- Replaces the configValueFactory to get the collection used to load data in 2.4.7+ -->
300+
<argument name="collectionFactory" xsi:type="object">Smile\ElasticsuiteCore\Model\ResourceModel\Search\Request\RelevanceConfig\Data\CollectionFactory</argument>
299301
</arguments>
300302
</virtualType>
301303

0 commit comments

Comments
 (0)