LocalData / localdata-mobile-web

LocalData mobile collection app
http://localdata.com/
BSD 3-Clause "New" or "Revised" License
9 stars 18 forks source link

Cached entries upload to wrong survey if you start on a different survey #215

Open hampelm opened 7 years ago

hampelm commented 7 years ago

To reproduce:

  1. Submit a response offline to survey A
  2. Leave app
  3. Go online and load link to survey B

Cached responses for Survey A are submitted to survey B.

This happens in postPlain and postMultipartinapi.jswhere we runapi.getSurveyURL()`

A solution would be to store the survey ID with every saved response