Skip to content

Commit 6a55d11

Browse files
authored
ENGCOM-9256: Fixed error DOT field with Portugal locale #34148
2 parents 3d84f28 + 1fa6a73 commit 6a55d11

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class Dob extends AbstractWidget
2828
const MAX_DATE_RANGE_KEY = 'date_range_max';
2929

3030
/**
31-
* Date inputs
32-
*
3331
* @var array
3432
*/
3533
protected $_dateInputs = [];
@@ -422,7 +420,8 @@ public function getTranslatedCalendarConfigJson(): string
422420
'monthNamesShort' => array_values(iterator_to_array($monthsData['format']['abbreviated'])),
423421
'dayNames' => array_values(iterator_to_array($daysData['format']['wide'])),
424422
'dayNamesShort' => array_values(iterator_to_array($daysData['format']['abbreviated'])),
425-
'dayNamesMin' => array_values(iterator_to_array($daysData['format']['short'])),
423+
'dayNamesMin' =>
424+
array_values(iterator_to_array(($daysData['format']['short']) ?: $daysData['format']['abbreviated'])),
426425
]
427426
);
428427
}

0 commit comments

Comments
 (0)