bexis / Module_ResearchAreaManagement

A tool to manage research areas. You can define the shape of your main plots and draw subplots inside. You can plan the localization of field experiments. You can use maps for orientation in the field. As you will keep the history of the subplots, you will always be able to distribute prospective subplots. Module for Core @BEXIS2.
0 stars 0 forks source link

Import via csv: wrong behavior when uploading with status = 2 again #100

Closed aostrow closed 2 years ago

aostrow commented 2 years ago

1. A status was set to 2 (=archive). When I upload a file where the row has the status = 2 then it reports a successful archive but the geometry is visible again. When I upload the file again then it reports a successful archive and the geometry is also archived. and again and again

2. A status was set to 2 (=archive). When I upload a file where the row has status = 2 and I have updates for other columns it should execute these updates. The plotchart admin maybe wants to change info of already archived rows later, e.g. add info to the description.

EleonoraPetzold commented 2 years ago

to 1: Should it be here so that if in the DB already status 2 is the program then does nothing? Are you sure that the geometry was visible? We use the same archive function for the import as in the ui.

aostrow commented 2 years ago

if it has already status 2 then it should do an update (if possible) yes, I could switch the visibility by uploading the file again and again

aostrow commented 2 years ago

I tested it and it seems to work now.