• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/helper/filter.php
  • Класс: BitrixTasksHelperFilter
  • Вызов: Filter::isExactSearchApplied
public function isExactSearchApplied(): bool
{
	$options = $this->getOptions();

	$currentPresetId = $options->getCurrentFilterId();

	$additionalPresetFields = $options->getAdditionalPresetFields($currentPresetId);

	$filledTmpPreset = false;
	if ($currentPresetId === Options::TMP_FILTER)
	{
		$ignoreValues = ['', 'undefined', 'tmp_filter'];
		$filterData = $this->getFilterData();
		foreach($filterData as $fieldValue)
		{
			if (is_array($fieldValue) && !empty($fieldValue))
			{
				$filledTmpPreset = true;
			}
			elseif (is_string($fieldValue) && !in_array($fieldValue, $ignoreValues, true))
			{
				$filledTmpPreset = true;
			}
		}
	}

	return (
		!$this->isFilterEmpty()
		&& (
			$this->getFilterFieldData('FIND', '')
			|| (!empty($additionalPresetFields) || $filledTmpPreset)
		)
	);
}