Bug 328

Summary: [Chameleon]Undefined index in production_draw_legend.php
Product: Chameleon Reporter: Normand Savard <nsavard@mapgears.com>
Component: CoreAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 1.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-03-24 16:08:05
Undefined variables in "production.phtml" warnings logged when opening "Print &
Save" window..

Steps to reproduce:

1.  Load "toporama_chameleon.php" (project:  chameleon_ctis).
2.  Click "Print and Save" button.
3.  Warnings are logged into the php log errors file (logging error set in
"php.ini" file).

Redhat 7.2
Chameleon, php_utils CVS 2004-03-24

---------------------
PHP:
[24-Mar-2004 15:54:10] PHP Notice:  Undefined offset:  3 in
/home/testsuite/proj/chameleon_cvs/htdocs/widgets/production_draw_legend.php on
line 253
------- Comment #1 From 2004-03-24 16:22:51 -------
In the bug description it should be read "production_draw_legend.php" instead of
"production.phtml".
------- Comment #2 From 2004-03-30 14:23:44 -------
This was a little bit more complicated. The style href was fetched with the
mapserver 40 method not mapserver4.1. I made the change to support
wms_style_[stylename]_legendurl_href instead of exploding
wms_style_[stylename]_legendurl and get the last value. (See the MapContext
documentation for more details)

Marking as FIXED.
------- Comment #3 From 2004-05-26 10:29:59 -------
Verified on Linux.
------- Comment #4 From 2004-06-23 14:32:14 -------
verified again on windows using beta 2 2004-06-20 sample app.

closing bug