]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Порядок во вьюшках
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 11 Jun 2025 08:24:31 +0000 (11:24 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 11 Jun 2025 08:24:31 +0000 (11:24 +0300)
erp24/views/crud/marketplace-order1c-statuses/index.php
erp24/views/crud/marketplace-order1c-statuses/view.php

index 628305f273917bfc948908069e38ba8aaed456ad..e4ce8ea2b4e99cc7d4c85174f609b41ef41e99a3 100644 (file)
@@ -59,11 +59,12 @@ $this->params['breadcrumbs'][] = $this->title;
                 'value' => function (MarketplaceOrder1cStatuses $model) {
                     $links = [];
                     foreach ($model->nextStatuses as $nextStatus) {
-                         $links[] = Html::a(
+                         $links[$nextStatus->order] = Html::a(
                             Html::encode($nextStatus->status),
                             ['/crud/marketplace-order-1c-statuses/view', 'id' => $nextStatus->id]
                         );
                     }
+                    sort($links);
                     return empty($links)
                         ? '<span class="text-muted">— нет связи —</span>'
                         : implode('<br>', $links);
index 05b484fd0a6a28b781ad8386df3152a06439811b..0d85b9970bcd62b17f35d991329e4739587d334d 100644 (file)
@@ -48,11 +48,12 @@ $this->params['breadcrumbs'][] = $this->title;
                 'value' => function (MarketplaceOrder1cStatuses $model) {
                     $links = [];
                     foreach ($model->nextStatuses as $nextStatus) {
-                        $links[] = Html::a(
+                        $links[$nextStatus->order] = Html::a(
                             Html::encode($nextStatus->status),
                             ['/crud/marketplace-order-1c-statuses/view', 'id' => $nextStatus->id]
                         );
                     }
+                    sort($links);
                     return empty($links)
                         ? '<span class="text-muted">— нет связи —</span>'
                         : implode('<br>', $links);