Commit 69bf162d344866dc2e4115b7c5e32755c05c85fc

Authored by Lucas Schmoeller da Silva
1 parent 7729594b
Exists in master

#13 Na página de cadastro de pessoa física, fazer o campo naturalidade ser obrig…

…atório somente para pais
Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
ieducar/intranet/atendidos_cad.php
... ... @@ -171,6 +171,7 @@ class indice extends clsCadastro
171 171 // ao cadastrar pessoa do pai ou mãe apartir do cadastro de outra pessoa,
172 172 // é enviado o tipo de cadastro (pai ou mae).
173 173 $parentType = isset($_REQUEST['parent_type']) ? $_REQUEST['parent_type'] : '';
  174 + $naturalidadeObrigatoria = ($parentType == '' ? true : false);
174 175  
175 176  
176 177 // sexo
... ... @@ -574,7 +575,8 @@ class indice extends clsCadastro
574 575  
575 576 // naturalidade
576 577  
577   - $options = array('label' => 'Naturalidade', 'required' => true);
  578 + //$options = array('label' => 'Naturalidade', 'required' => true);
  579 + $options = array('label' => 'Naturalidade', 'required' => $naturalidadeObrigatoria);
578 580  
579 581 $helperOptions = array('objectName' => 'naturalidade',
580 582 'hiddenInputOptions' => array('options' => array('value' => $this->naturalidade_id)));
... ...