• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicatepersoncriterion.php
  • Класс: Bitrix\Crm\Integrity\DuplicatePersonCriterion
  • Вызов: DuplicatePersonCriterion::prepareMatchHash
static function prepareMatchHash(array $matches)
{
	$result = array();

	$lastName = isset($matches['LAST_NAME']) ? $matches['LAST_NAME'] : '';
	if($lastName !== '')
	{
		$result[] = $lastName;
	}

	$name = isset($matches['NAME']) ? $matches['NAME'] : '';
	if($name !== '')
	{
		$result[] = $name;
	}

	$secondName = isset($matches['SECOND_NAME']) ? $matches['SECOND_NAME'] : '';
	if($secondName !== '')
	{
		$result[] = $secondName;
	}
	return !empty($result) ? md5(implode(';', $result)) : '';
}