From: Vladimir Fomichev Date: Mon, 11 Aug 2025 13:16:58 +0000 (+0300) Subject: Добавление причин по MatrixErpProperty X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=79f637c64e49da0391f5aafb75068539f91e03f6;p=erp24_rep%2Fyii-erp24%2F.git Добавление причин по MatrixErpProperty --- 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(); }