From 37910f098baf64b814755dd39e377515fd727295 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Wed, 10 Sep 2025 13:37:11 +0300 Subject: [PATCH] =?utf8?q?=D0=A1=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20=D0=B8=20?= =?utf8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/matrix-bouquet-actuality/index.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/erp24/views/matrix-bouquet-actuality/index.php b/erp24/views/matrix-bouquet-actuality/index.php index 935dc7a9..a177dad4 100644 --- a/erp24/views/matrix-bouquet-actuality/index.php +++ b/erp24/views/matrix-bouquet-actuality/index.php @@ -207,15 +207,19 @@ foreach ($subgroups as $sg) { 'contentOptions' => ['style'=>'min-width:150px;'], 'value' => function ($row, $key, $index) { $product = $row['product']; - $name = Html::encode($product->name . ' (' . $product->id . ')'); - - return '
' . $name . '
'; + $name = Html::encode($product->name . ' (' . $product->guid . ')'); + $anchor = Html::a($name, ['bouquet/view', 'id' => $product->id], ['target' => '_blank']); + return '
' . $anchor . '
'; } ], [ 'attribute' => 'price', 'label' => 'Цена', - 'value' => function($row) { return $row['price']->price; }, + 'value' => function($row) { + if ($row['price']) { + return $row['price']->price; + } + }, 'format' => ['decimal', 2], ], [ @@ -330,7 +334,7 @@ $js = <<