Save operation's batches : error if batch's parent has no more a sampling batch
Created by: blavenie
In the SUMARiS App:
- Create a new operation;
- Create a species batch, with a sampling weight (e.g. in the discard part);
- Create a unique individual measure, linked to this species;
- Reopen the operation
- Remove the sampling weight (and any other sampling data)
- Save : You get a Pod error "Could not found batch with id="
This is because the Pod try to remove the sampling batch, but remove also the individual measure inside. Then the reloading of the individual measure batch is not possible.