Commit 7822d35a94e037e331e4e3d9c8214fa4d7c30eea

Authored by Lucas Schmoeller da Silva
1 parent 385fe753
Exists in master

Alterado validação do 'campoHora'

portabilis/ieducar#93
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
ieducar/intranet/include/clsCampos.inc.php
... ... @@ -454,7 +454,7 @@ class clsCampos extends Core_Controller_Page_Abstract
454 454 $arr_componente = array(
455 455 'hora',
456 456 $this->__adicionando_tabela ? $nome : $campo,
457   - $obrigatorio ? "/[0-9]{2}:[0-9]{2}/" : "*(/[0-9]{2}:[0-9]{2}/)",
  457 + $obrigatorio ? '/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])(:[0-5][0-9])?$/' : '*(/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])(:[0-5][0-9])?$/)',
458 458 $valor,
459 459 6,
460 460 5,
... ...