Commit 604c7a3371c8dd5b841b7f7d26c9e14e2dfef763
1 parent
4b9bbe08
Exists in
2.9
and in
2 other branches
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 | 184 | $arr_componente = [ |
185 | 185 | 'cnpj', |
186 | 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 | 188 | $valor, |
189 | 189 | 20, |
190 | 190 | 18, | ... | ... |