• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/systemfield/base.php
  • Класс: BitrixCatalogProductSystemFieldBase
  • Вызов: Base::getGroupActionRequest
static function getGroupActionRequest(ProductGroupAction $panel): ?array
{
	$field = static::getUserFieldBaseParam();
	$requestName = $panel->getFormRowFieldName($field['FIELD_NAME']);
	$value = MainContext::getCurrent()->getRequest()->get($requestName);

	if ($value === null)
	{
		return null;
	}
	if ($field['MULTIPLE'] === 'Y' && !is_array($value))
	{
		$value = [$value];
	}

	return [$field['FIELD_NAME'] => $value];
}