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:
commit
3d5f494723
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user