From 08329827adce17eca097f588fb799bd7613b7924 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 15 Apr 2025 12:29:41 +0300 Subject: [PATCH] [ERP-399] fix --- erp24/commands/MatrixErpController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/commands/MatrixErpController.php b/erp24/commands/MatrixErpController.php index 8720e47b..0f54014b 100644 --- a/erp24/commands/MatrixErpController.php +++ b/erp24/commands/MatrixErpController.php @@ -39,7 +39,7 @@ class MatrixErpController extends Controller $matrixErp = $existingMapGuidMatrixErp[$product->id]; foreach (['components', 'articule'] as $fieldInd => $field) { if ($matrixErp->$field != $product->$field) { - $matrixErpPropertyDynamic1 = $matrixErpPropertyDynamicByGuid[$fieldInd + 1][$matrixErp->guid]; + $matrixErpPropertyDynamic1 = $matrixErpPropertyDynamicByGuid[$fieldInd + 1][$matrixErp->guid] ?? null; /* @var MatrixErpPropertyDynamic $matrixErpPropertyDynamic1 */ if ($matrixErpPropertyDynamic1) { $matrixErpPropertyDynamic1->date_end = date("Y-m-d H:i:s"); -- 2.39.5