Skip to content

Commit

Permalink
Acertando listagem de serviços da unidade no painel. fixes novosga#72
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino committed Jul 24, 2013
1 parent fca7e72 commit b7a080c
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion src/web/painel/PainelController.php
Expand Up @@ -28,7 +28,7 @@ public function index(SGAContext $context) {
public function servicos(SGAContext $context) {
$version = (int) $context->getRequest()->getParameter('version');
$unidade = (int) $context->getRequest()->getParameter('unidade');
$query = DB::getEntityManager()->createQuery("SELECT e FROM \core\model\ServicoUnidade e WHERE e.unidade = :unidade ORDER BY e.nome");
$query = DB::getEntityManager()->createQuery("SELECT e FROM \core\model\ServicoUnidade e WHERE e.unidade = :unidade AND e.status = 1 ORDER BY e.nome");
$query->setParameter(':unidade', $unidade);
echo ProtocolFactory::create($version)->encodeServicos($query->getResult());
exit();
Expand Down

0 comments on commit b7a080c

Please sign in to comment.