Pick-up slots remain when dates in store are deleted or changed.
Summary
After the deletion of slots in a store the Abholung remains on Dashboard. In the store the Abholung doesn't show up.
Steps to reproduce
- Have a cooperating store with people in the pick-up slots. Best: Be listed for taking a pick-up. Otherwise ask Someone to do so.
- Remove the pick-up dates.
- Set new pick-up times, maybe when the old ones were.
- Go to your or Someone's Dashboard with the "deleted" pick-up in it.
What is the current bug behavior?
After deleting pick-ups in a store, they remain in the database because they're still shown on Dashboard of the fetching person.
What is the expected correct behavior?
When a pick-up (set manually or regularly) is deleted, it should be deleted in the database as a whole, not only in the store to change or see the pick-up slot.
Possible fixes
Connecting the pick-ups in stores directly with the database. Maybe delete the empty slots as before, adding a "simulated deletion by the user" per filled slot if it's filled.
Edited by Johannes