-
Notifications
You must be signed in to change notification settings - Fork 175
Closed
Description
What happened?
Description
Since this commit, the purchasables table in the order is broken, as you can see in this screenshot:
It shows just one result, but according to the pagination, it should be list 10 purchasables.
This happens because the mentioned commit filters the result arrays but not the pagination one:
return $this->asSuccess(data: [
'pagination' => AdminTable::paginationLinks($page, $total, $limit),
'data' => $this->_addLivePurchasableInfo($result, $siteId, $customerId),
]);
The $total
should change after _addLivePurchasableInfo
filtered the data.
Steps to reproduce
- Create a shop with multiple sites
- Create a few variants which are enabled either in one or the other site
- Create an order and add line items manually – the purchasable list is now incomplete because of the faulty paginaiton
Craft CMS version
Craft Pro 5.6.17
Craft Commerce version
5.3.8
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response