1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

fix #152 Добавил проверку данных ФИО при заполнении поля в истории

This commit is contained in:
yura 2020-10-30 15:36:35 +03:00
parent f0a7350ae5
commit ea56593fce

View file

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