From 7ec026b78577dbd92418d651ff43be53df60b083 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 21 May 2024 14:34:39 +0300 Subject: [PATCH] fix part 011 ad stacktrace --- erp24/modul/shipment/ajaxUpdateStoreZakup.php | 2 -- erp24/modul/shipment/functionsShipment.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/erp24/modul/shipment/ajaxUpdateStoreZakup.php b/erp24/modul/shipment/ajaxUpdateStoreZakup.php index a8a9e3c..9ff9401 100644 --- a/erp24/modul/shipment/ajaxUpdateStoreZakup.php +++ b/erp24/modul/shipment/ajaxUpdateStoreZakup.php @@ -270,8 +270,6 @@ try { echo ""; if (!empty($data_up)) { - var_dump(count($fieldsRows)); - var_dump(count($data_up)); insert_store_orders_fields($data_up, $Field); // вносим данные в таблицу } echo " " . $fieldsRows[$Field]["name"] . " " . $fieldsRows[$Field]["name_eng"] . " посчитано"; diff --git a/erp24/modul/shipment/functionsShipment.php b/erp24/modul/shipment/functionsShipment.php index 81e780c..998f798 100644 --- a/erp24/modul/shipment/functionsShipment.php +++ b/erp24/modul/shipment/functionsShipment.php @@ -795,7 +795,7 @@ foreach($massivSQL as $productId =>$array) { } catch (Exception $e) { - echo 'Ошибка вставки данных field_name='.$field_name.' '.print_r($param ?? '').' error='. $e->getMessage(); + echo 'Ошибка вставки данных field_name='.$field_name.' '.print_r($param ?? '').' error='. $e->getMessage() . ' ' . $e->getFile() . ' ' . $e->getLine() . ' ' . $e->getTraceAsString(); } -- 2.39.5