File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ public function getVariablesOptionArray($withGroup = false)
326
326
$ optionArray [] = ['value ' => '{{ ' . $ value . '}} ' , 'label ' => __ ('%1 ' , $ label )];
327
327
}
328
328
if ($ withGroup ) {
329
- $ optionArray = ['label ' => __ ('Template Variables ' ), 'value ' => $ optionArray ];
329
+ $ optionArray = [[ 'label ' => __ ('Template Variables ' ), 'value ' => $ optionArray] ];
330
330
}
331
331
}
332
332
return $ optionArray ;
Original file line number Diff line number Diff line change @@ -598,16 +598,18 @@ public function getVariablesOptionArrayDataProvider()
598
598
'label ' => __ ('Template Variables ' ),
599
599
'value ' => [
600
600
[
601
- 'value ' => '{{store url=""}} ' ,
602
- 'label ' => __ ('%1 ' , 'Store Url ' ),
603
- ],
604
- [
605
- 'value ' => '{{var logo_url}} ' ,
606
- 'label ' => __ ('%1 ' , 'Email Logo Image Url ' ),
607
- ],
608
- [
609
- 'value ' => '{{var customer.name}} ' ,
610
- 'label ' => __ ('%1 ' , 'Customer Name ' ),
601
+ [
602
+ 'value ' => '{{store url=""}} ' ,
603
+ 'label ' => __ ('%1 ' , 'Store Url ' ),
604
+ ],
605
+ [
606
+ 'value ' => '{{var logo_url}} ' ,
607
+ 'label ' => __ ('%1 ' , 'Email Logo Image Url ' ),
608
+ ],
609
+ [
610
+ 'value ' => '{{var customer.name}} ' ,
611
+ 'label ' => __ ('%1 ' , 'Customer Name ' ),
612
+ ],
611
613
],
612
614
],
613
615
],
You can’t perform that action at this time.
0 commit comments