Tangerine-Community / Tangerine

Digitize your offline data collection. Create your Forms online with Tangerine Editor, conduct them offline with the Tangerine Android App. All results you collect can be exported as a CSV file, easy for processing in a spreadsheet. Tangerine has been used in over 1 million assessments and surveys in over 60 countries and in 100 languages.
http://www.tangerinecentral.org/
GNU General Public License v3.0
48 stars 30 forks source link

Make the Visits tab aware of multiple location lists #3670

Open esurface opened 7 months ago

esurface commented 7 months ago

On the offline client, the 'Visits' tab shows a count of forms by location and date to help data collectors review where and when forms were filled. The location associated with the form is based on the first tangy-location input in that form ('noLocation' if there is no tangy-location input).

With the addition of mutliple location lists, the form might have a tangy-location input that is not the default location list. The Visits tab table currently displays the id of the location. Improve this to make it search for the location for that id in all lists.

Related to: https://github.com/Tangerine-Community/Tangerine/issues/3628