From: Alexander Smirnov Date: Tue, 15 Apr 2025 09:29:41 +0000 (+0300) Subject: [ERP-399] fix X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=08329827adce17eca097f588fb799bd7613b7924;p=erp24_rep%2Fyii-erp24%2F.git [ERP-399] fix --- 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");