Commit 1fc00c333c278abbb94a21ce198eb7578e82b3a0

Authored by Yarik
1 parent 164cd94a

Order print

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
views/order/print.php
... ... @@ -90,7 +90,7 @@ use yii\widgets\DetailView;
90 90 ],
91 91 [
92 92 'attribute' => 'shipping_by',
93   - 'value' => $order->shipping_by?function() use($order) {
  93 + 'value' => $order->shipping_by?(function() use($order) {
94 94 switch ($order->shipping_by) {
95 95 case 1:
96 96 return 'Отправитель';
... ... @@ -100,7 +100,7 @@ use yii\widgets\DetailView;
100 100 break;
101 101 }
102 102 return null;
103   - }:null,
  103 + })():null,
104 104 ],
105 105 [
106 106 'attribute' => 'city',
... ...