avniproject / avni-client

Android app for the fieldworkers.
https://avniproject.org
GNU Affero General Public License v3.0
7 stars 20 forks source link

Sync issue #1542

Open mahalakshme opened 3 days ago

mahalakshme commented 3 days ago

https://avni.freshdesk.com/a/tickets/4878

app: 10.0.3, 9.4.0 username: mubarak@hd_utthaan env: prod

Image

petmongrels commented 3 days ago

dump kept in user media. it starts with Kept...

other details

Analysis

petmongrels commented 3 days ago

Individual.initLowestAddressLevel should be changed to following otherwise it returns false instead of returning null.

static initLowestAddressLevel(lowestAddressLevel, subjectType, entityService) { const isUserSubjectType = subjectType && subjectType.isUser(); const noAddress = _.isNil(lowestAddressLevel); if (noAddress) { return isUserSubjectType ? this.getPlaceholderAddressLevel(entityService) : null; } return lowestAddressLevel; }