Метод hasMailBodyChanged

public static

Сигнатура метода

public static function hasMailBodyChanged(int $activityId, string $description): bool

Возвращает: bool

Описание

Whether the body stored for the activity differs from the full text the operation carries - the question of an update, asked before the description is compressed (crm_activity.php:626-636). AN ACTIVITY WITH NO STORED BODY COUNTS AS CHANGED, exactly as legacy compares an empty text with the one it was given: an email whose body was never bound gets one now. The other half of the legacy gate - that the caller gave a description at all - is about the input of the operation rather than about an email, so it stays with the step.

Параметры

2
Имя Тип По умолчанию Флаги
$activityId int —
—
$description string —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Service/Activity/Pipeline/Step/Shared/EmailBranch.php
Расположение метода в файле
Строки 165–168

Исходный код

PHP