]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавление причин по MatrixErpProperty
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 11 Aug 2025 13:16:58 +0000 (16:16 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 11 Aug 2025 13:16:58 +0000 (16:16 +0300)
erp24/actions/marketplace/ReportAction.php
erp24/controllers/MatrixErpPropertyController.php

index 30b7738fb07aafda9a80191be8b4ba9342d1910d..66e538d292e1ab7bc9f7212c2d9d3e0d4fdf9647 100644 (file)
@@ -34,7 +34,6 @@ class ReportAction extends Action
             'product_url' => 'string',
             'flowwow_category' => 'string',
             'flowwow_subcategory' => 'string',
-            'yandex_category' => 'string',
             'length' => 'numeric',
             'width' => 'numeric',
             'height' => 'numeric',
index e92a5c9e290e2b243515347516f1862d8904f0c6..87d647dffa2c58df15325067705ab675ecf88a18 100644 (file)
@@ -127,6 +127,8 @@ class MatrixErpPropertyController extends Controller
                     $modelEdit->created_admin_id = $adminId;
                 }
 
+                $modelEdit->product_url ='/media/view-card?guid=' . $modelEdit->guid;
+
                 if (!empty($modelEdit->image_id)) {
                     $oldFile = Images::find()->where(['id' => $modelEdit->image_id])->one();
                 }
@@ -224,7 +226,7 @@ class MatrixErpPropertyController extends Controller
 
                                 if (!empty($imageId)) {
                                     $modelEdit->image_id = $imageId;
-
+                                    $modelEdit->external_image_url =  '/media/view-image?id=' . $imageId;
                                     if (!empty($oldFile)) {
                                         $oldFile->delete();
                                     }