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-01 14:57:38 +03:00 committed by GitHub
parent 593e5c058b
commit ff3196e373
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -703,7 +703,6 @@ class RetailCrmHistory
}
}
$order['fio'] = str_replace("clear", "", $order['fio']);
//optionsOrderProps
if ($optionsOrderProps[$personType]) {
@ -1463,19 +1462,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'] = ' ';
}
}
}