Closed (fixed)
Project:
Openlayers
Version:
6.x-1.x-dev
Component:
OpenLayers Preset UI
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2009 at 01:29 UTC
Updated:
27 Jul 2009 at 21:53 UTC
Hi,
when I try to save a preset, the Controls section (Mouse position, Zoom controls...) is not properly saved.
In contrast selecting layers or map size works and is correctly stored as a preset.
Comments
Comment #1
digi24 commentedI have tried to debug this issue and could isolate it:
Options and layers can only be added, but not removed.
To reproduce:
1. Delete "preset_data" field in the databse for a given preset.
2. Edit preset, select some options, layers etc. and save
-> Everything is ok so far
3. Now try to deselect a layer or an option or select something else and save
-> FAIL: New layers are added, but unselected options are still active. preset_data in the databse grows, it is only possible to add options, not to remove/unselect.
Comment #2
digi24 commentedcontinued in #528964: Bad Logic in Preset Saving