File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Plugin/Model/Customer/Metadata Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Copyright © Magento, Inc. All rights reserved.
4+ * See COPYING.txt for license details.
5+ */
6+
7+ namespace Magento \Sales \Plugin \Model \Customer \Metadata ;
8+
9+ use Magento \Eav \Model \Config ;
10+
11+ class AddressMetadata
12+ {
13+ /**
14+ * @var Config
15+ */
16+ private $ eavConfig ;
17+
18+ /**
19+ * Initialize eav config model
20+ *
21+ * @param Config $eavConfig
22+ */
23+ public function __construct (
24+ Config $ eavConfig
25+ ) {
26+ $ this ->eavConfig = $ eavConfig ;
27+ }
28+
29+ /**
30+ * Reset the eav attributes
31+ *
32+ * @return void
33+ */
34+ public function beforeGetAllAttributesMetadata ()
35+ {
36+ $ this ->eavConfig ->clear ();
37+ }
38+ }
Original file line number Diff line number Diff line change 5252 <type name =" Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult" >
5353 <plugin name =" orderGridCollectionFilterPlugin" type =" Magento\Sales\Plugin\Model\ResourceModel\Order\OrderGridCollectionFilter" />
5454 </type >
55+ <type name =" Magento\Customer\Model\Metadata\AddressMetadata" >
56+ <plugin name =" OrderDetailUpdateAddress" type =" Magento\Sales\Plugin\Model\Customer\Metadata\AddressMetadata" />
57+ </type >
5558</config >
You can’t perform that action at this time.
0 commit comments