File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
app/code/Magento/Customer/Block/Widget Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function __construct(
55
55
}
56
56
57
57
/**
58
- * @return void
58
+ * @inheritdoc
59
59
*/
60
60
public function _construct ()
61
61
{
@@ -245,10 +245,13 @@ public function getStoreLabel($attributeCode)
245
245
*/
246
246
public function getAttributeValidationClass ($ attributeCode )
247
247
{
248
- return $ this ->_addressHelper ->getAttributeValidationClass ($ attributeCode );
248
+ $ attributeMetadata = $ this ->_getAttribute ($ attributeCode );
249
+ return $ attributeMetadata ? $ attributeMetadata ->getFrontendClass () : '' ;
249
250
}
250
251
251
252
/**
253
+ * Check if attribute is required
254
+ *
252
255
* @param string $attributeCode
253
256
* @return bool
254
257
*/
@@ -259,6 +262,8 @@ private function _isAttributeRequired($attributeCode)
259
262
}
260
263
261
264
/**
265
+ * Check if attribute is visible
266
+ *
262
267
* @param string $attributeCode
263
268
* @return bool
264
269
*/
You can’t perform that action at this time.
0 commit comments