From 72c53b8bd4063a802984cb33f73d307ccf81fb55 Mon Sep 17 00:00:00 2001 From: vasilevdm Date: Thu, 14 Jan 2021 16:38:56 +0300 Subject: [PATCH] added check to fix wiping 'fio' field if it is doesn`t present in history --- .../classes/general/history/RetailCrmHistory_v5.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php index 234eac90..0b27656c 100644 --- a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php +++ b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php @@ -690,7 +690,9 @@ class RetailCrmHistory } } - $order['fio'] = str_replace("clear", "", $order['fio']); + if (array_key_exists('fio', $order)) { + $order['fio'] = str_replace("clear", "", $order['fio']); + } //optionsOrderProps if ($optionsOrderProps[$personType]) {