File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Eav/Model/ResourceModel/Entity/Attribute/Option
lib/internal/Magento/Framework/Data/Form/Element Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public function getCacheKeyInfo()
160
160
161
161
return [
162
162
'CATALOG_PRODUCTS_LIST_WIDGET ' ,
163
- $ this ->getPriceCurrency ()->getCurrencySymbol (),
163
+ $ this ->getPriceCurrency ()->getCurrency ()-> getCode (),
164
164
$ this ->_storeManager ->getStore ()->getId (),
165
165
$ this ->_design ->getDesignTheme ()->getId (),
166
166
$ this ->httpContext ->getValue (\Magento \Customer \Model \Context::CONTEXT_GROUP ),
Original file line number Diff line number Diff line change @@ -147,7 +147,9 @@ public function testGetCacheKeyInfo()
147
147
$ this ->request ->expects ($ this ->once ())->method ('getParam ' )->with ('page_number ' )->willReturn (1 );
148
148
149
149
$ this ->request ->expects ($ this ->once ())->method ('getParams ' )->willReturn ('request_params ' );
150
- $ this ->priceCurrency ->expects ($ this ->once ())->method ('getCurrencySymbol ' )->willReturn ('$ ' );
150
+ $ currency = $ this ->createMock (\Magento \Directory \Model \Currency::class);
151
+ $ currency ->expects ($ this ->once ())->method ('getCode ' )->willReturn ('USD ' );
152
+ $ this ->priceCurrency ->expects ($ this ->once ())->method ('getCurrency ' )->willReturn ($ currency );
151
153
152
154
$ this ->serializer ->expects ($ this ->any ())
153
155
->method ('serialize ' )
@@ -157,7 +159,7 @@ public function testGetCacheKeyInfo()
157
159
158
160
$ cacheKey = [
159
161
'CATALOG_PRODUCTS_LIST_WIDGET ' ,
160
- '$ ' ,
162
+ 'USD ' ,
161
163
1 ,
162
164
'blank ' ,
163
165
'context_group ' ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ protected function _construct()
78
78
*/
79
79
public function setAttributeFilter ($ setId )
80
80
{
81
- return $ this ->addFieldToFilter ('attribute_id ' , $ setId );
81
+ return $ this ->addFieldToFilter ('main_table. attribute_id ' , $ setId );
82
82
}
83
83
84
84
/**
Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ public function getElementHtml()
167
167
'buttonImage ' => $ this ->getImage (),
168
168
'buttonText ' => 'Select Date ' ,
169
169
'disabled ' => $ this ->getDisabled (),
170
+ 'minDate ' => $ this ->getMinDate (),
171
+ 'maxDate ' => $ this ->getMaxDate (),
170
172
],
171
173
]
172
174
)
You can’t perform that action at this time.
0 commit comments