diff --git a/src/Models/Filterable.php b/src/Models/Filterable.php index b44016564..ac3c21348 100644 --- a/src/Models/Filterable.php +++ b/src/Models/Filterable.php @@ -116,7 +116,8 @@ private function applyGroup(Builder $query, stdClass $group): void if ($rule->name == 'skill_level') { // Now get all the skill rules in this group foreach ($rules as $skrule) { - if ($skrule->name == 'skill') { + // if it is a skill rule, special case it + if (property_exists($skrule, 'path') && $skrule->name == 'skill') { $this->applySkillLevelRule($query_group, $rule, $skrule); } }