Commit 904a3620e0be21e6461482e03a501d0b199ac96c

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

mensagem de erro

src/Cacic/CommonBundle/Controller/ModuloController.php 100644 → 100755
... ... @@ -58,13 +58,18 @@ class ModuloController extends Controller
58 58  
59 59 $novasRedes = array_key_exists( 'rede', $_data ) ? $_data['rede'] : array();
60 60 $this->getDoctrine()->getRepository( 'CacicCommonBundle:AcaoRede' )->atualizarPorLocal( $idAcao, $local, $novasRedes );
61   -
  61 + // if ( $novasRedes )
  62 + // throw $this->createNotFoundException( 'Subrede não encontrado' );
  63 +
62 64 $novosSO = array_key_exists( 'so', $_data ) ? $_data['so'] : array();
63 65 $this->getDoctrine()->getRepository( 'CacicCommonBundle:AcaoSo' )->atualizarPorLocal( $idAcao, $local, $novasRedes, $novosSO );
64   -
  66 + // if ( $novosSO )
  67 + // throw $this->createNotFoundException( 'Subrede não encontrado' );
  68 +
65 69 $novasExcecoes = array_key_exists( 'mac', $_data ) ? explode(',', $_data['mac'] ) : array();
66 70 $this->getDoctrine()->getRepository( 'CacicCommonBundle:AcaoExcecao' )->atualizarPorLocal( $idAcao, $local, $novasRedes, $novasExcecoes );
67   -
  71 +
  72 +
68 73 $this->get('session')->getFlashBag()->add('success', 'Dados salvos com sucesso!');
69 74 return $this->redirect( $this->generateUrl( 'cacic_modulo_editar', array('idAcao'=>$idAcao) ) );
70 75 }
... ... @@ -87,7 +92,7 @@ class ModuloController extends Controller
87 92 );
88 93  
89 94 $excecoes = $this->getDoctrine()->getRepository( 'CacicCommonBundle:AcaoExcecao' )->getArrayExcecoesPorAcao( $idAcao ); // Recupera a lista de excecoes
90   -
  95 +
91 96 return $this->render(
92 97 'CacicCommonBundle:Modulo:editar.html.twig',
93 98 array(
... ...