Bug with {html_options}
| From: | Nichlas Löfdahl | Date: | Tue, 18 Mar 2003 19:29:46 +0000 |
| Subject: | Bug with {html_options} | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-990@lists.php.net to get a copy of this message | ||
Greetings!
There's a bug with {html_options} and the optgroup-support.
The following patch fixes it.
RCS file: /repository/smarty/libs/plugins/function.html_options.php,v
retrieving revision 1.14
diff -r1.14 function.html_options.php
92c92
< $optgroup_html = '<optgroup label="' .
smarty_function_escape_special_chars($value) . '">' . "\n";
---
> $optgroup_html = '<optgroup label="' .
> smarty_function_escape_special_chars($key) . '">' . "\n";
/Nichlas