Commit cd85971ed8c30c9ce1d87319af053839eb64410b

Authored by bonot
1 parent 0f8809cb
Exists in 2.8 and in 7 other branches 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Corrige campo ambíguo na consulta

ieducar/intranet/include/pmieducar/clsPmieducarAluno.inc.php
... ... @@ -988,7 +988,7 @@ class clsPmieducarAluno
988 988 $filtros = '';
989 989 $this->resetCamposLista();
990 990  
991   - $this->_campos_lista .= ', pessoa.nome AS nome_aluno, fisica.nome_social, COALESCE(nome_social, nome) AS ordem_aluno';
  991 + $this->_campos_lista .= ', pessoa.nome AS nome_aluno, fisica.nome_social, COALESCE(nome_social, pessoa.nome) AS ordem_aluno';
992 992  
993 993 if($filtra_baseado_matricula)
994 994 $sql = "SELECT distinct {$this->_campos_lista} FROM {$this->_tabela} INNER JOIN pmieducar.matricula m ON (m.ref_cod_aluno = a.cod_aluno) ";
... ...