form_builder() doesn't validate children type when recursing through all child elements, which leads to error on form save attempt (i.e. not well ported 5.x modules)
this small patch fixes this behaviour
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | form.inc_.patch | 542 bytes | valthebald |
| form.inc_.patch | 447 bytes | valthebald |
Comments
Comment #1
Freso commentedDoes the problem exist in 7.x (latest HEAD)? Which version is the patch for that needs porting?
Comment #2
valthebaldthis problem exists in both 6.2 and HEAD branches
sorry for being late in answer - is there any way to get notifications here?
Comment #3
Freso commentedYou can go to http://drupal.org/project/issues/subscribe-mail/drupal and choose "Own issues".
Comment #4
valthebaldgreat! thanks
Comment #5
gpk commentedYou'll need to re-arrange your added line slightly per http://drupal.org/coding-standards. Also a test will probably be required ...
Comment #6
valthebaldadapted patch for drupal coding standard (I hope...)
Comment #7
valthebaldComment #8
gpk commentedThat looks better. Probably needs a test to confirm that the problem is fixed, see http://drupal.org/node/273612.
Comment #9
Freso commentedI know this is really annoying, but you've used tabs instead of (two) spaces for indentation. Coding style looks good apart from this. :)
Comment #10
chx commentedI am steadfast in that these kind of fixes are bloat and nothing else. You add lines of code to Drupal core which never will fire unless you are developing and doing it wrong. But, it will take memory and because of parsing it, some CPU cycles on every site that runs Drupal. That's sheer wrong.