From 79f637c64e49da0391f5aafb75068539f91e03f6 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Mon, 11 Aug 2025 16:16:58 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?utf8?q?=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8=D1=87=D0=B8=D0=BD=20=D0=BF?= =?utf8?q?=D0=BE=20MatrixErpProperty?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/marketplace/ReportAction.php | 1 - erp24/controllers/MatrixErpPropertyController.php | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/erp24/actions/marketplace/ReportAction.php b/erp24/actions/marketplace/ReportAction.php index 30b7738f..66e538d2 100644 --- a/erp24/actions/marketplace/ReportAction.php +++ b/erp24/actions/marketplace/ReportAction.php @@ -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', diff --git a/erp24/controllers/MatrixErpPropertyController.php b/erp24/controllers/MatrixErpPropertyController.php index e92a5c9e..87d647df 100644 --- a/erp24/controllers/MatrixErpPropertyController.php +++ b/erp24/controllers/MatrixErpPropertyController.php @@ -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(); } -- 2.39.5