Summary: | [Filter expression] Filter espression returns nothing if WFS filter clear is hit | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Julien-Samuel Lacroix <jlacroix@mapgears.com> |
Component: | Widget | Assignee: | 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: |
Working on this
Oups! sorry! forgot assign to me before marking as ASSIGNED working on this
Changed target to 1.99 RC 1.
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.
Changing Version to 1.99 (2.0 not being worked on yet).