1
0
mirror of synced 2024-11-22 05:16:09 +03:00

добавлены customFileds при обработке истории в customer

This commit is contained in:
gorokh 2019-11-01 13:49:02 +03:00
parent f0aeabe505
commit b81cd1ccc4

View File

@ -910,6 +910,8 @@ class RetailCrmHistory
$customers[$change['customer']['id']]['contragent'][$fields['customerContragent'][$change['field']]] = $change['newValue'];
} elseif ($fields['customer'][$change['field']]) {
$customers[$change['customer']['id']][$fields['customer'][$change['field']]] = self::newValue($change['newValue']);
} elseif (strripos($change['field'], 'custom_') !== false) {
$customers[$change['customer']['id']]['customFields'][str_replace('custom_', '', $change['field'])] = self::newValue($change['newValue']);
}
if (isset($change['created'])) {