• Модуль: biconnector
  • Путь к файлу: ~/bitrix/modules/biconnector/lib/dictionarymanager.php
  • Класс: BitrixBIConnectorDictionaryManager
  • Вызов: DictionaryManager::onAfterUserUpdateHandler
static function onAfterUserUpdateHandler(&$userFields)
{
	if ($userFields['RESULT'] && static::$userBefore && $userFields['ID'] == static::$userBefore->getId())
	{
		$departmentBefore = static::$userBefore->getUfDepartment();
		$userAfter = static::getUser($userFields['ID']);
		if ($userAfter)
		{
			$departmentAfter = $userAfter->getUfDepartment();
			if (static::arrayToKey($departmentBefore) !== static::arrayToKey($departmentAfter))
			{
				static::invalidateCache(Dictionary::USER_DEPARTMENT);
			}
		}
	}
	static::$userBefore = null;
}