@@ -868,28 +868,19 @@ function fetchFromEntity (Entity $entity, $value, Registration $registration = n
868868 $ taxonomies_fields = $ this ->taxonomiesOpportunityFields ();
869869
870870 if ($ entity_field == '@location ' ){
871-
872- if ($ entity ->En_Nome_Logradouro && $ entity ->En_Num && $ entity ->En_Municipio && $ entity ->En_Estado ) {
873- $ result = [
874- 'endereco ' => $ entity ->endereco ,
875- 'En_CEP ' => $ entity ->En_CEP ,
876- 'En_Nome_Logradouro ' => $ entity ->En_Nome_Logradouro ,
877- 'En_Num ' => $ entity ->En_Num ,
878- 'En_Complemento ' => $ entity ->En_Complemento ,
879- 'En_Bairro ' => $ entity ->En_Bairro ,
880- 'En_Municipio ' => $ entity ->En_Municipio ,
881- 'En_Estado ' => $ entity ->En_Estado ,
882- 'location ' => $ entity ->location ,
883- 'publicLocation ' => $ entity ->publicLocation
884- ];
885- if (isset ($ entity ->En_Pais )) {
886- $ result ["En_Pais " ] = $ entity ->En_Pais ;
887- }
888- } else {
889- $ result = null ;
890- }
891-
892- $ value = $ result ;
871+ $ value = [
872+ 'endereco ' => $ entity ->endereco ,
873+ 'En_CEP ' => $ entity ->En_CEP ,
874+ 'En_Nome_Logradouro ' => $ entity ->En_Nome_Logradouro ,
875+ 'En_Num ' => $ entity ->En_Num ,
876+ 'En_Complemento ' => $ entity ->En_Complemento ,
877+ 'En_Bairro ' => $ entity ->En_Bairro ,
878+ 'En_Municipio ' => $ entity ->En_Municipio ,
879+ 'En_Estado ' => $ entity ->En_Estado ,
880+ 'En_Pais ' => $ entity ->En_Pais ,
881+ 'location ' => $ entity ->location ,
882+ 'publicLocation ' => $ entity ->publicLocation
883+ ];
893884
894885 } else if ($ taxonomies_fields && in_array ($ entity_field , array_keys ($ taxonomies_fields ))) {
895886 $ term = $ taxonomies_fields [$ entity_field ];
0 commit comments