From 7d74c34c10fac60ef2ed7c01fed1c21d084affb3 Mon Sep 17 00:00:00 2001 From: Lucas Schmoeller da Silva Date: Wed, 18 Mar 2015 15:57:41 -0300 Subject: [PATCH] Corrigido cadastro de tipo de usuário --- ieducar/intranet/educar_tipo_usuario_cad.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ieducar/intranet/educar_tipo_usuario_cad.php b/ieducar/intranet/educar_tipo_usuario_cad.php index 3d0edfb..9e83064 100644 --- a/ieducar/intranet/educar_tipo_usuario_cad.php +++ b/ieducar/intranet/educar_tipo_usuario_cad.php @@ -377,6 +377,7 @@ function selAction(menu_pai, tipo, acao) for (var ct = 0; ct < element.length; ct++) { if(element[ct].getAttribute('type') == 'checkbox') { element[ct].checked = state; + element[ct].value = ( state ? 'on' : ''); } } @@ -384,7 +385,7 @@ function selAction(menu_pai, tipo, acao) } for (var ct=0; ct < menu[menu_pai].length; ct++){ - document.getElementsByName('permissoes[' + menu[menu_pai][ct] + '][' + tipo + ']')[0].checked = state; + document.getElementsByName('permissoes[' + menu[menu_pai][ct] + '][' + tipo + ']')[0].value = ( state ? 'on' : ''); } } -- libgit2 0.21.2