Skip to content

Commit

Permalink
Merge pull request #358 from romainruaud/feature_protect-elasticsuite…
Browse files Browse the repository at this point in the history
…-fields

Adding elasticsuite internal nested attributes as reserved.
  • Loading branch information
afoucret authored Mar 20, 2017
2 parents f731141 + 349478c commit f92a5b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/module-elasticsuite-catalog/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,14 @@
</arguments>
</virtualType>

<!-- Set reserved nested fields of elasticsuite as reserved to prevent anyone creating an attribute with the same name. -->
<type name="Magento\Catalog\Model\Product\ReservedAttributeList">
<arguments>
<argument name="reservedAttributes" xsi:type="array">
<item name="stock" xsi:type="string">stock</item>
<item name="category" xsi:type="string">category</item>
</argument>
</arguments>
</type>

</config>

0 comments on commit f92a5b3

Please sign in to comment.