[#583] Get surveyId from surveyInstance instead of surveyalValue

I think that also copies all the baseDto fields, right? Do we want that?

On 9 Jun 2014, at 14:34, Iván Perdomo <notifications@github.com> wrote:

> In GAE/src/org/waterforpeople/mapping/app/web/SurveyedLocaleServlet.java:
> 
> > @@ -144,9 +144,9 @@ protected SurveyedLocaleResponse convertToResponse(List<SurveyedLocale> slList,
> >  					SurveyInstance si = sDao.getByKey(instanceId);
> >  					if (si != null){
> >  						siDto.setUuid(si.getUuid());
> > +						siDto.setSurveyId(si.getSurveyId());
> Why we just don't use DtoMarshaller.copyToDto instead of picking some values of the si instance? This will solve the problem if we need to send more data to the client in the future.
> 
> —
> Reply to this email directly or view it on GitHub.
>