Bug 953 - RemoveLayer widget: does not reset SELECTED_LAYERS variable
: RemoveLayer widget: does not reset SELECTED_LAYERS variable
Status: RESOLVED FIXED
: Chameleon
Widget
: 2.0
: PC Windows XP
: P2 normal
: 2.2
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-02-09 08:52 by
Modified: 2005-05-27 16:08 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-02-09 08:52:38
The RemoveLayer widget works with the SELECTED_LAYERS form variable, and deletes
this layer/these layers.

But after the execution it does not reset the form variable, which still has the
old value so the client thinks (at the javascript side) that there is still an
active layer.

Proposed fix to the ParseURL function:

..
			}
			$this->setVar('SELECTED_LAYERS', "");
		}
		return true;
------- Comment #1 From 2005-05-27 08:15:20 -------
It's a minor bug fix so I can do this before 2.2.
------- Comment #2 From 2005-05-27 16:08:50 -------
Fixed in both head and 2.0.X.