Re: [SMARTY-DEV] bugs
| From: | Monte Ohrt | Date: | Fri, 06 Jun 2003 16:11:24 +0000 |
| Subject: | Re: [SMARTY-DEV] bugs | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1543@lists.php.net to get a copy of this message | ||
I don't see a problem with what is in CVS. The label attribute should be
the displayed output, not the value of the option.
Example:
<option label="This is A" value="A">This is A</option>
<option label="This is B" value="B">This is B</option>
Monte
On Fri, 2003-06-06 at 10:57, Jean-Philippe Barrette-LaPierre wrote:
> I sent a fix for a problem a little time ago, but I'm not sure it was
> fixed on the CVS. There's my previous post. (sorry at this time I was
> unable to give a patch file)
>
> on the line 54 of functions.html_options.php we can read:
> $optgroup_html = '<optgroup label="' . htmlspecialchars($value) .
> '">' .
> "\n";
>
> but this is a bug that cause a optgroup to not have his label correctly
> displayed. the line must be:
> $optgroup_html = '<optgroup label="' . htmlspecialchars($key) .
> '">' . "\n";
--
Monte Ohrt <monte@ispi.net>