Commit f62eec5c12132761017819fbd2dbfb6d2357a660
1 parent
59663239
Exists in
master
Corrigido cadastro de funcionário
Opções "Super usuário", "Banido" e "Matrícula permanente" não eram carregadas corretamente em edição; portabilis/ieducar#107
Showing
1 changed file
with
9 additions
and
3 deletions
Show diff stats
ieducar/intranet/funcionario_cad.php
... | ... | @@ -304,9 +304,15 @@ class indice extends clsCadastro |
304 | 304 | } |
305 | 305 | |
306 | 306 | $this->campoTexto("ramal", "Ramal", $this->ramal, 11, 30); |
307 | - $this->campoCheck("super", "Super usuário", $this->super); | |
308 | - $this->campoCheck("proibido", "Banido", $this->proibido); | |
309 | - $this->campoCheck("matricula_permanente", "Matrícula permanente", $this->matricula_permanente); | |
307 | + | |
308 | + $opcoes = array(null => "Não", 'S' => "Sim"); | |
309 | + $this->campoLista("super", "Super usuário", $opcoes, $this->super, '',false,'','',false,false); | |
310 | + | |
311 | + $opcoes = array(null => "Não", 1 => "Sim"); | |
312 | + $this->campoLista("proibido", "Banido", $opcoes, $this->proibido, '',false,'','',false,false); | |
313 | + | |
314 | + $opcoes = array(null => "Não", 1 => "Sim"); | |
315 | + $this->campoLista("matricula_permanente", "Matrícula permanente", $opcoes, $this->matricula_permanente, '',false,'','',false,false); | |
310 | 316 | |
311 | 317 | //----------------------------------------------------------------------------------------------- |
312 | 318 | ... | ... |