Метод mergeSubmitted

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

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

Путь к исходному файлу строки 132–153
~/bitrix/modulestasks/lib/internals/task/template/unresolvedformmembers.php

Исходный код

PHP
private static

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

private static function mergeSubmitted(array $submittedField, array $unresolvedIds, bool $hadRenderedMembers): array

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

Описание

The form posts every member field on each save, so a field that comes back empty means one of two things: the person cleared the role, or the role only had members the form could not render. Posting unresolved members back is right in the second case and wrong in the first, where it would restore a member the person had just removed. The rendered flag tells the cases apart.

Параметры

3
Имя Тип По умолчанию Флаги
$submittedField array -
-
$unresolvedIds array -
-
$hadRenderedMembers bool -
-