Commit d59c4516955a8b201d511c05db950960409c4576

Authored by Bruno Menezes
1 parent 8e8e921e
Exists in master and in 1 other branch 3.1

Correção de Lista de Usb Device cadastrados

src/Cacic/CommonBundle/Controller/UsbDeviceController.php
@@ -11,13 +11,12 @@ use Cacic\CommonBundle\Form\Type\UsbDeviceType; @@ -11,13 +11,12 @@ use Cacic\CommonBundle\Form\Type\UsbDeviceType;
11 11
12 class UsbDeviceController extends Controller 12 class UsbDeviceController extends Controller
13 { 13 {
14 - public function indexAction( $page ) 14 + public function indexAction()
15 { 15 {
16 return $this->render( 16 return $this->render(
17 'CacicCommonBundle:UsbDevice:index.html.twig', 17 'CacicCommonBundle:UsbDevice:index.html.twig',
18 array( 18 array(
19 - 'UsbDevice' => $this->getDoctrine()->getRepository( 'CacicCommonBundle:UsbDevice' )->paginar( $this->get( 'knp_paginator' ), $page )  
20 - ) 19 + 'UsbDevice' => $this->getDoctrine()->getRepository( 'CacicCommonBundle:UsbDevice' )->paginar())
21 ); 20 );
22 } 21 }
23 22