From bbdf690bb393123410eb5b09032ffa4e91f4f3b8 Mon Sep 17 00:00:00 2001 From: KMityai Date: Wed, 13 Apr 2022 17:07:58 +0300 Subject: [PATCH] fix editing propertys in bitrix orders --- .../classes/general/history/RetailCrmHistory_v5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php index ce628b9d..b6f654b6 100644 --- a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php +++ b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php @@ -1863,7 +1863,7 @@ class RetailCrmHistory if (!isset($obj) || empty($obj)) { return false; } - if ($prop && $value) { + if ($prop && $value || $prop && !$value) { $obj->setField($prop, $value); } elseif ($value && !$prop) { $obj->setValue($value);