]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-399] fix
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 15 Apr 2025 09:29:41 +0000 (12:29 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 15 Apr 2025 09:29:41 +0000 (12:29 +0300)
erp24/commands/MatrixErpController.php

index 8720e47b2615f5e004913a2e14078dc2a9f44c39..0f54014bbcea5d40f9484e72b58830f37df4069a 100644 (file)
@@ -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");