Bug 463

Summary: [Filter expression] Filter espression returns nothing if WFS filter clear is hit
Product: Chameleon Reporter: Julien-Samuel Lacroix <jlacroix@mapgears.com>
Component: WidgetAssignee: Julien-Samuel Lacroix <jlacroix@mapgears.com>
Status: RESOLVED FIXED    
Severity: normal CC: chameleon-dev@lists.maptools.org, dmcilhagga@dmsolutions.ca
Priority: P2    
Version: 1.99   
Target Milestone: 1.99 beta 4   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-06-22 15:34:00
The Filter expression widget returns nothing if a query is cleared using the WFS
filter clear button before the filter expression button is pressed.
------- Comment #1 From 2004-07-05 13:41:14 -------
Working on this
------- Comment #2 From 2004-07-05 13:42:59 -------
Oups! sorry!  forgot assign to me before marking as ASSIGNED

working on this
------- Comment #3 From 2004-07-08 13:00:28 -------
Changed target to 1.99 RC 1.
------- Comment #4 From 2004-07-08 17:00:15 -------
Few! Finally got it! I had a hard time to track it down.
The problem was in LegendTemplate.widget.php. It happens because the
LegendTemplate widget keep a list of all layers comma separated in the hidden
form variable LEGENDTEMPLATE_LAYERS.

The problem was "a list of all layers"...even those deleted by other widgets. So
I added a validation when building this string.

417,418c417,422
<             $szLayerNames .= $szSep . $oLayer->name;
<             $szSep = ",";
---
>             // Don't include layers that will be deleted.
>             if( $oLayer->status != MS_DELETE )
>             {
>                 $szLayerNames .= $szSep . $oLayer->name;
>                 $szSep = ",";
>             }

Marking as FIXED.
------- Comment #5 From 2004-08-10 15:38:10 -------
Changing Version to 1.99 (2.0 not being worked on yet).