Skip to content

Commit 7208720

Browse files
authored
Fix: correction in edcenso_city for sedsp (#479)
1 parent b2921ac commit 7208720

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/modules/sedsp/mappers/StudentMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static function parseToTAGExibirFichaAluno(OutExibirFichaAluno $exibirFic
115115
$studentIdentification->edcenso_nation_fk = $outDadosPessoais->getOutCodPaisOrigem();
116116
}
117117
$studentIdentification->edcenso_uf_fk = intval(EdcensoUf::model()->find("acronym = :acronym", [":acronym" => $outDadosPessoais->getOutUfMunNascto()])->id);
118-
$studentIdentification->edcenso_city_fk = intval(EdcensoCity::model()->find("name = :name", [":name" => $outDadosPessoais->getOutNomeMunNascto()])->id);
118+
$studentIdentification->edcenso_city_fk = intval(EdcensoCity::model()->find("name = :name", [":name" => $outEnderecoResidencial->getOutNomeCidade()])->id);
119119
$studentIdentification->deficiency = 0;
120120
$studentIdentification->send_year = intval(Yii::app()->user->year);
121121

app/modules/sedsp/usecases/Student/GetExibirFichaAlunoFromSEDUseCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function createAndSaveStudentDocumentsAndAddress($attributes, $studentIde
4444
{
4545
$studentDocumentsAndAddress = new StudentDocumentsAndAddress();
4646
$studentDocumentsAndAddress->attributes = $attributes->getAttributes();
47+
$studentDocumentsAndAddress->edcenso_city_fk = $attributes->edcenso_city_fk;
4748
$studentDocumentsAndAddress->gov_id = $gov_id;
4849
$studentDocumentsAndAddress->id = $studentIdentification->id;
4950

0 commit comments

Comments
 (0)