MM
Reported
i have tested the purchases module in you demo but i can not create any purchases.
On my local log i become this error:
[2021-10-03 11:21:15] production.ERROR: ksort(): Argument #1 ($array) must be of type array, string given {"userId":"bf49ff67-00ba-46d2-b858-2c22a627cdb1","exception":"[object] (TypeError(code: 0): ksort(): Argument #1 ($array) must be of type array, string given at /var/www/vhosts/sbase.de/sbase_rc2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2903)
On my local log i become this error:
[2021-10-03 11:21:15] production.ERROR: ksort(): Argument #1 ($array) must be of type array, string given {"userId":"bf49ff67-00ba-46d2-b858-2c22a627cdb1","exception":"[object] (TypeError(code: 0): ksort(): Argument #1 ($array) must be of type array, string given at /var/www/vhosts/sbase.de/sbase_rc2/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2903)
- MSAnsweredHello,
I will fix this in coming update. If you need it urgent, you can change line 37 of `modules/MPS/Models/PurchaseItem.php` with
```php
if ($pId && !empty($serials)) {
```
Thank you - Login to Reply