Commit 7d74c34c10fac60ef2ed7c01fed1c21d084affb3

Authored by Lucas Schmoeller da Silva
1 parent c9c1ff85
Exists in master

Corrigido cadastro de tipo de usuário

Alguns checkboxs não estavam sendo salvos corretamente;

portabilis/ieducar#112
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
ieducar/intranet/educar_tipo_usuario_cad.php
... ... @@ -377,6 +377,7 @@ function selAction(menu_pai, tipo, acao)
377 377 for (var ct = 0; ct < element.length; ct++) {
378 378 if(element[ct].getAttribute('type') == 'checkbox') {
379 379 element[ct].checked = state;
  380 + element[ct].value = ( state ? 'on' : '');
380 381 }
381 382 }
382 383  
... ... @@ -384,7 +385,7 @@ function selAction(menu_pai, tipo, acao)
384 385 }
385 386  
386 387 for (var ct=0; ct < menu[menu_pai].length; ct++){
387   - document.getElementsByName('permissoes[' + menu[menu_pai][ct] + '][' + tipo + ']')[0].checked = state;
  388 + document.getElementsByName('permissoes[' + menu[menu_pai][ct] + '][' + tipo + ']')[0].value = ( state ? 'on' : '');
388 389 }
389 390 }
390 391 </script>
... ...