Skip to content

Commit

Permalink
fix: Filtering non-deleted priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino committed Nov 25, 2024
1 parent 7624510 commit b8ffbf9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Form/TransferirType.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ public function __construct(
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$servicos = $options['servicos'];
$prioridades = $this
->prioridadeRepository
->createQueryBuilder('e')
->where('e.ativo = TRUE')
->orderBy('e.peso', 'ASC')
->addOrderBy('e.nome', 'ASC')
->getQuery()
->getResult();
$prioridades = $this->prioridadeRepository->findAtivas();

$builder
->add('servico', ChoiceType::class, [
Expand Down

0 comments on commit b8ffbf9

Please sign in to comment.