Skip to content

[Bug in SDK]: Batch::get() in User service returns DealItemResult instead of UserItemResult #447

@Kuzm1ch-dev

Description

@Kuzm1ch-dev

version(s) affected

1.10.1 3.1.0

Description

Bug description
Bitrix24\SDK\Services\User\Service\Batch::get() yields DealItemResult instead of the correct User result type.
Current behavior
// src/Services/User/Service/Batch.php
use Bitrix24\SDK\Services\CRM\Deal\Result\DealItemResult;
// ...
yield $key => new DealItemResult($value); // wrong
Expected behavior
Should yield Bitrix24\SDK\Services\User\Result\UserItemResult (or equivalent User result class).

How to reproduce

Call $b24Service->getUserScope()->batch()->get([], []) and inspect the yielded items — they are instances of DealItemResult.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug in SDKSomething isn't working in SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions