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

Update RetailCrmHistory_v5.php

This commit is contained in:
DmitreyZl 2020-09-04 15:14:01 +03:00 committed by GitHub
parent d64dd971d3
commit 6aa31beac7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -690,7 +690,6 @@ class RetailCrmHistory
}
}
$order['fio'] = str_replace("clear", "", $order['fio']);
//optionsOrderProps
if ($optionsOrderProps[$personType]) {
@ -1452,19 +1451,19 @@ class RetailCrmHistory
if ($change['field'] == 'last_name') {
if (true == is_null($change['newValue'])) {
$orders[$change['order']['id']]['lastName'] = 'clear';
$orders[$change['order']['id']]['lastName'] = ' ';
}
}
if ($change['field'] == 'first_Name') {
if (true == is_null($change['newValue'])) {
$orders[$change['order']['id']]['firstName'] = 'clear';
$orders[$change['order']['id']]['firstName'] = ' ';
}
}
if ($change['field'] == 'patronymic') {
if (true == is_null($change['newValue'])) {
$orders[$change['order']['id']]['patronymic'] = 'clear';
$orders[$change['order']['id']]['patronymic'] = ' ';
}
}
}