Updates to 03-2025
This commit is contained in:
parent
bfa3bb1df4
commit
9ae662f63e
243 changed files with 12580 additions and 12018 deletions
|
|
@ -75,7 +75,11 @@ class IqSite extends Model
|
|||
public function getProductModels(){
|
||||
$ret = [];
|
||||
foreach($this->products as $product_id){
|
||||
$ret[] = Product::findOrFail($product_id);
|
||||
$product = Product::findOrFail($product_id);
|
||||
if($product->active){
|
||||
$ret[] = $product;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return $ret;
|
||||
|
|
@ -84,7 +88,10 @@ class IqSite extends Model
|
|||
public function getProductSetModels(){
|
||||
$ret = [];
|
||||
foreach($this->set_products as $product_id){
|
||||
$ret[] = Product::findOrFail($product_id);
|
||||
$product = Product::findOrFail($product_id);
|
||||
if($product->active){
|
||||
$ret[] = $product;
|
||||
}
|
||||
|
||||
}
|
||||
return $ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue