Update RetailCrmHistory_v5.php
This commit is contained in:
parent
d64dd971d3
commit
6aa31beac7
1 changed files with 3 additions and 4 deletions
|
@ -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'] = ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue