Commit 604c7a3371c8dd5b841b7f7d26c9e14e2dfef763

Authored by Joalisson Barros
1 parent 4b9bbe08
Exists in 2.9 and in 2 other branches 2.7, 2.8

Corrige regra de obrigatoriedade.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
ieducar/intranet/include/clsCampos.inc.php
@@ -184,7 +184,7 @@ class clsCampos extends Core_Controller_Page_Abstract @@ -184,7 +184,7 @@ class clsCampos extends Core_Controller_Page_Abstract
184 $arr_componente = [ 184 $arr_componente = [
185 'cnpj', 185 'cnpj',
186 $this->__adicionando_tabela ? $nome : $campo, 186 $this->__adicionando_tabela ? $nome : $campo,
187 - $obrigatorio ? "/[0-9]{2}\.[0-9]{3}\.[0-9]{3}\/[0-9]{4}\-[0-9]{2}/" : "*(/[0-9]{2}\.[0-9]{3}\.[0-9]{3}\/[0-9]{4}\-[0-9]{2}/)", 187 + $obrigatorio ? "/[0-9]{2}\.[0-9]{3}\.[0-9]{3}\/[0-9]{4}\-[0-9]{2}/" : '',
188 $valor, 188 $valor,
189 20, 189 20,
190 18, 190 18,