PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #5205

misspelled JavaScript

Details

Submitted2005-08-25 09:29 UTC
Fromrudger at direqt dot nl
Assignedavb
StatusClosed
PackageHTML_QuickForm
PHP Version4.3.5
OSLinux server 2.4.25
Roadmaps(Not assigned)

Comments

[2005-08-25 09:29 UTC] rudger at direqt dot nl

Description:
------------
javascript error: expecting object on line...

fixed this locally(!),
--- (= current file)
+++ (= edited file)

and the result diff -u:

/home/direqt/pear/php/HTML/QuickForm/RuleRegistry.php
--- /home/pear/php/HTML/QuickForm/RuleRegistry.php Thu Aug 25 10:30:10 2005
+++ /home/pear/php/HTML/QuickForm/RuleRegistry.php Thu Aug 25 10:54:16 2005
@@ -269,7 +269,7 @@
" _element.checked = _element.defaultChecked;\n" .
" break;\n" .
" case 'select-one':\n" .
- " case 'select-multiple:\n" .
+ " case 'select-multiple':\n" .
" for (var j = 0; j < _element.options.length; j++) {\n" .
" _element.options[j].selected = _element.options[j].defaultSelected;\n" .
" }\n" .

please confirm and update?

[2005-08-30 09:53 UTC] peter at luciak dot org

Confirm, missing apostrophe on line 272 in RuleRegistry.php. And if I may add, kinda irritating that this sort of bug can't be fixed 3 weeks after "stable" release...