File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
app/code/Magento/Ui/Component/Listing/Columns Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,19 @@ public function __construct(
55
55
public function prepare ()
56
56
{
57
57
$ config = $ this ->getData ('config ' );
58
- $ config ['filter ' ] = [
59
- 'filterType ' => 'dateRange ' ,
60
- 'templates ' => [
61
- 'date ' => [
62
- 'options ' => [
63
- 'dateFormat ' => $ this ->timezone ->getDateFormatWithLongYear ()
58
+ if (isset ($ config ['filter ' ])) {
59
+ $ config ['filter ' ] = [
60
+ 'filterType ' => 'dateRange ' ,
61
+ 'templates ' => [
62
+ 'date ' => [
63
+ 'options ' => [
64
+ 'dateFormat ' => $ config ['dateFormat ' ] ?? $ this ->timezone ->getDateFormatWithLongYear ()
65
+ ]
64
66
]
65
67
]
66
- ]
67
- ] ;
68
- $ this -> setData ( ' config ' , $ config );
68
+ ];
69
+ $ this -> setData ( ' config ' , $ config ) ;
70
+ }
69
71
70
72
parent ::prepare ();
71
73
}
You can’t perform that action at this time.
0 commit comments