Skip to content

Commit

Permalink
Do not overwrite the category select query
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Nov 10, 2021
1 parent 80ec594 commit 230c87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected static function booted()
];

$builder
->select(preg_filter('/^/', $builder->getQuery()->from.'.', $defaultColumnsToSelect))
->addSelect(preg_filter('/^/', $builder->getQuery()->from.'.', $defaultColumnsToSelect))
->groupBy($builder->getQuery()->from.'.entity_id');
});
}
Expand Down

0 comments on commit 230c87e

Please sign in to comment.