1
0
mirror of synced 2024-11-21 21:06:09 +03:00

fix #152 Проверка данных ФИО при заполнении поля в истории (#153)

This commit is contained in:
Yura 2020-11-11 14:46:27 +03:00 committed by GitHub
parent 4f5ae21915
commit 460b254a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -699,7 +699,7 @@ class RetailCrmHistory
$somePropValue = $propertyCollection $somePropValue = $propertyCollection
->getItemByOrderPropertyId($propsKey[$orderProp]['ID']); ->getItemByOrderPropertyId($propsKey[$orderProp]['ID']);
if ($key == 'fio') { if ($key == 'fio' && '' !== trim($order['fio'])) {
self::setProp($somePropValue, $order[$key]); self::setProp($somePropValue, $order[$key]);
} else { } else {
self::setProp($somePropValue, RCrmActions::fromJSON($order[$key])); self::setProp($somePropValue, RCrmActions::fromJSON($order[$key]));