From: Vladimir Fomichev Date: Wed, 10 Sep 2025 10:37:11 +0000 (+0300) Subject: Ссылка и правки X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=37910f098baf64b814755dd39e377515fd727295;p=erp24_rep%2Fyii-erp24%2F.git Ссылка и правки --- 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 = <<