Skip to content

Commit

Permalink
ensure we don't confuse groups and rules
Browse files Browse the repository at this point in the history
  • Loading branch information
recursivetree committed Apr 18, 2024
1 parent 545a6ce commit 9ebac65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/Filterable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9ebac65

Please sign in to comment.