1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Merge pull request #5259 from turbo124/v5-develop

Transform id's correctly
This commit is contained in:
David Bomba 2021-03-26 20:39:09 +11:00 committed by GitHub
commit 3d5f494723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,12 +265,12 @@ class SubscriptionService
public function products() public function products()
{ {
return Product::whereIn('id', explode(",", $this->subscription->product_ids))->get(); return Product::whereIn('id', $this->transformKeys(explode(",", $this->subscription->product_ids)))->get();
} }
public function recurring_products() public function recurring_products()
{ {
return Product::whereIn('id', explode(",", $this->subscription->recurring_product_ids))->get(); return Product::whereIn('id', $this->transformKeys(explode(",", $this->subscription->recurring_product_ids)))->get();
} }
public function price() public function price()