Skip to content

Commit 423f988

Browse files
authored
Merge pull request #280 from bitrix24/bugfix/279-fix-crm-item-list
Fix incorrect array offset in `ItemsResult::getItems` and update CHAN…
2 parents f098157 + 13c4267 commit 423f988

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
- `list` Get a list of custom types crm.type.list
1414
- `delete` This method deletes an existing smart process by the identifier id
1515

16+
### Fixed
17+
18+
- Fixed wrong offset in `ItemsResult` [see details](https://github.com/bitrix24/b24phpsdk/issues/279)
19+
20+
### Statistics
21+
22+
```
23+
Bitrix24 API-methods count:
24+
Supported in bitrix24-php-sdk methods count:
25+
Coverage percentage:
26+
```
27+
1628
## 1.7.0 - 2025.10.08
1729

1830
### Added

src/Services/CRM/Item/Result/ItemsResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ItemsResult extends AbstractResult
2525
public function getItems(): array
2626
{
2727
$items = [];
28-
foreach ($this->getCoreResponse()->getResponseData()->getResult() as $item) {
28+
foreach ($this->getCoreResponse()->getResponseData()->getResult()['items'] as $item) {
2929
$items[] = new ItemItemResult($item);
3030
}
3131

0 commit comments

Comments
 (0)