Skip to content

Commit 1fa6a73

Browse files
ENGCOM-9256: Fixed error DOT field with Portugal locale #34148
- Merge Pull Request #34148 from AZiniukhin/magento2:34130_Fixed_error_DOT_field_with_Portugal_locale - Merged commits: 1. b605562 2. 6d1468c 3. 4ba1b37 4. 419bcf5 5. d7a8fdc
2 parents ca1b5b6 + d7a8fdc commit 1fa6a73

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)