Skip to content

Commit 54ac2a2

Browse files
author
Volodymyr Zaets
committed
MAGETWO-48535: No js validation for date of birth attribute on storefront
1 parent 13b1119 commit 54ac2a2

File tree

1 file changed

+4
-4
lines changed
  • app/code/Magento/Customer/Block/Widget

1 file changed

+4
-4
lines changed

app/code/Magento/Customer/Block/Widget/Dob.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,16 +208,16 @@ public function getHtmlId()
208208
*/
209209
public function getHtmlExtraParams()
210210
{
211-
$extraParams = array(
211+
$extraParams = [
212212
"'validate-date-au':true"
213-
);
213+
];
214214

215215
if ($this->isRequired()) {
216-
array_push($extraParams, 'required:true');
216+
$extraParams[] = 'required:true';
217217
}
218218

219219
$extraParams = implode(', ', $extraParams);
220-
220+
221221
return 'data-validate="{' . $extraParams . '}"';
222222
}
223223

0 commit comments

Comments
 (0)