openspp-modules
openspp-modules copied to clipboard
Farmer tabs are retaining deleted values from species
Describe the bug Values for crops, livestock, aquaculture are retained even when deleting the corresponding value from Configuration>species in Farmer Registry
To Reproduce
- go to farmer-registry QA
- In registry select a farm group
- go to crop agriculture tab, and add a new value, select whatever crop you wish.
- under purpose column, add anything you want.
- after saving. go to Configuration>species
- search for the value that you have added from step 3
- click on the checkbox beside it >click action>delete.
- go back to the particular farmer selected from step 2
- click on crop agriculture tab, notice under species column, there is no more value but the line created still exists.
Expected behavior
When a value is deleted from Registry>Configuration>species, it should also remove the already existing relationship with the farm groups that have it.
Screenshots
Additional context
🔔 Note: This ticket should address common considerations without including country-specific content. Please ensure all references are generic and applicable across various contexts.