From c4d7501f38466e9616cc25b9afc5c71e341a83f9 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 27 May 2025 12:21:22 +0300 Subject: [PATCH] ERP-417 --- erp24/controllers/WriteOffsErpController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/controllers/WriteOffsErpController.php b/erp24/controllers/WriteOffsErpController.php index 24425238..d11e675b 100644 --- a/erp24/controllers/WriteOffsErpController.php +++ b/erp24/controllers/WriteOffsErpController.php @@ -552,10 +552,10 @@ class WriteOffsErpController extends Controller } $modelProductId = $modelProduct->getId(); -var_dump(1);die(); + if (!empty($modelsProductsFiles) && array_key_exists($keyModelProduct, $modelsProductsFiles)) { $filesForProduct = $modelsProductsFiles[$keyModelProduct]; - + var_dump(2);die(); $imageFiles = ArrayHelper::getValue($filesForProduct, 'imageFiles', []); foreach ($imageFiles as $imageFile) { if (Images::isImageFile($imageFile)) { -- 2.39.5