Re: QuickForm, select with null value. Bug?

From: Date: Wed, 18 Jun 2003 15:05:00 +0000
Subject: Re: QuickForm, select with null value. Bug?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6100@lists.php.net to get a copy of this message
Alexey Borzov wrote:
Hi! Wolfram Kriesing wrote:
I got a tiny problem with a QuickForm-select. i add 3 options with the values, 1, 0 and null, where the last one with the null value adds the attribute value="" which is exactly what i want. But if i set the default value to 0 and freeze the form later it tells me Notice: Undefined offset: 1 in /myPath/HTML/QuickForm/select.php on line 548
Try the current CVS of select.php, please. I made a bunch of changes to getFrozenHtml() But I suspect that you'll get some other undesired behaviour, as null == 0.
well now there comes no notice. but as you supposed, since the null-value is before the 0-value in the options, it shows me the option-label for the null-value instead of the label for the 0 :-( -- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... authentication system .... http://sf.net/projects/auth

« previous php.pear.general (#6100) next »