Indicia-Team / warehouse

GNU General Public License v3.0
5 stars 3 forks source link

Sample/Occurrence import linked to wrong location #454

Open JimBacon opened 2 years ago

JimBacon commented 2 years ago

Recreate as follows

Create two websites, then create two locations with the same name. Assign a location to each website. The list of locations will then hold entries like this image

Now import a sample from csv file into the second website. You'll have to create a survey first. Use a file with the following contents

Date, Spatial ref, Location
1/1/2022, TL1234, Anyoldplace

The import settings will look something like the following image

Use the following field mappings image

Perform the upload and then look at the newly created sample belonging to Web2. It is associated with the location that belongs to Web 1 (with id = 73). image

The location look-up on import does not respect the ownership of locations.