Bug #1296
closedLinestrings cannot be deleted
Description
After creating a linestring geometry in the map and saving it, again in edit mode, it cannot be deleted. Even though the linestring is removed, after saving and reloading the entity it is there again.
https://thanados.openatlas.eu/entity/132654
Files
Updated by Alexander Watzinger over 4 years ago
- Category set to Maps
I wasn't able to reproduce the bug. Tested in demo, demo-dev and THANADOS with Firefox. Steps:
- Click on edit at a place/sub unit
- Add a line
- Save entity
- Edit again
- Delete the line
- Save the entity
Line isn't visible anymore.
If you took other steps please specify. Have you tried force reloading the page to clear cache? Which browser/version are you using?
Also I saw no line at the provided link, only a shape which I didn't tried to delete for obvious reasons but I also tested shape in demo and could delete it without a problem.
Updated by Stefan Eichert over 4 years ago
- File screenshot.jpg screenshot.jpg added
- Status changed from New to Resolved
It turned out that the linestring entry in the gis.linestring table had "shape" as type. This seems to have caused the but. See screenshot. Maybe this was still cached somewhere.
I manually deleted it from the db via sql and inserted a proper polygon.
I think we can close it for now. If it reoccurs somehow, we can take care of it then.
Updated by Alexander Watzinger over 4 years ago
- Assignee set to Stefan Eichert
- Subject changed from linestrings cannot be deleted to Linestrings cannot be deleted
- Status changed from Resolved to Closed
Thanks for reporting and glad that we could solve it so fast. Closing the ticket but we keep it as reference in case something similar happens again.