Fixes to list adsl services
This commit is contained in:
parent
217462f77e
commit
94b7b4bcd4
@ -210,14 +210,9 @@ class Model_Service extends ORM_OSB {
|
|||||||
|
|
||||||
$cats = ORM::factory('Product_Category')->list_bylistgroup($cat);
|
$cats = ORM::factory('Product_Category')->list_bylistgroup($cat);
|
||||||
|
|
||||||
foreach ($this->list_active() as $so) {
|
foreach ($this->list_active() as $so)
|
||||||
if (! $so->product->avail_category OR ! preg_match('/^a:/',$so->product->avail_category))
|
if (array_intersect($so->product->avail_category,array_keys($cats)))
|
||||||
continue;
|
|
||||||
|
|
||||||
$pc = unserialize($so->product->avail_category);
|
|
||||||
if (array_intersect($pc,array_keys($cats)))
|
|
||||||
array_push($result,$so);
|
array_push($result,$so);
|
||||||
}
|
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user